MaxiGallery -> modx parse error: Function split() is deprecated
Опубликовано 21.03.2011 01:56 в MODx, WebDEV | Комментариев (8)В моей версии MODx 1.0.5 сниппет MaxiGallery выдавал ошибку при попытке загрузки изображения:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: Function split() is deprecated Error type/ Nr.: — 8192 File: xx\maxigallery\maxigallery.class.inc.php Line: 242 Line 242 source: $sizes = split(‘x’, $max_thumb_size); Parser timing MySQL: 0.0124 s (4 Requests) PHP: 0.1473 s Total: 0.1597 s
Решается заменой в 242 строке split на explode.