Hello world
The Plug-in "Download by size" uses in the file main.inc.php the following code (lines 109 - 112):
// functions
$filename = preg_replace_callback('#\$escape\((.*?)\)#', create_function('$m', 'return str2url($m[1]);'), $filename);
$filename = preg_replace_callback('#\$upper\((.*?)\)#', create_function('$m', 'return str2upper($m[1]);'), $filename);
$filename = preg_replace_callback('#\$lower\((.*?)\)#', create_function('$m', 'return str2lower($m[1]);'), $filename);
$filename = preg_replace_callback('#\$strpad\((.*?),(.*?),(.*?)\)#', create_function('$m', 'return str_pad($m[1],$m[2],$m[3],STR_PAD_LEFT);'), $filename);
Now, in version 7.2 of php the fuction "create_function" is deprecated and the plug-in does not run.
Is somebody availible to fix it? My knowledge in php are not enough...
Thank alot!
Piwigo version: 2.9.4
PHP version: 7.2
MySQL version: 10.1-MariaDB
Piwigo URL: http:// --
Offline
I have to work on it [Github] Piwigo-download_by_size issue #8
Offline