Announcement

#1 2019-10-25 13:37:57

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Comment Blacklist PHP 7.2

Hi,

comment blacklist uses a deprecated function "create_function" on line 67 of the main.inc.php file:
  $blacklist = array_map(create_function('$w', 'return preg_quote($w);'), $blacklist);

I tried to figure out how to replace it with "function" but with no success.

Any ideas how to fix line67?

I want to get rid of the php warning regarding the deprecated function.

Thanks
Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#2 2019-10-25 15:04:09

executive
Member
2017-08-16
1214

Re: Comment Blacklist PHP 7.2

search forum for "deprecated warning"

Offline

 

#3 2019-10-25 17:07:25

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Comment Blacklist PHP 7.2

Hi,
thanks - disabling the warnings in locale files editor:
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED;

did the trick.

Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact