Announcement

#1 2019-02-22 12:15:58

maki1985
Member
2019-02-22
1

Plug in "Download by size"

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

 

#2 2019-02-22 15:47:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13210

Re: Plug in "Download by size"

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact