mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-13 21:45:36 +03:00
Squashed commit of the following:
commit 7190866ccf15033f27095d635546e46dacbb755e Author: plegall <plg@piwigo.org> Date: Thu Jul 12 10:52:33 2018 +0200 Revert "Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin" This reverts commitc8b12a2ed0
. commit 1dac11ecb6783d0d5353c3d250388f018c30fc5c Author: plegall <plg@piwigo.org> Date: Thu Jul 12 10:52:24 2018 +0200 Revert "Update Smarty to 3.1.3" This reverts commitdb684f6151
. commit 3ac752dc93912ba5701d22dadd9bb3b81e5bb383 Merge:d1c2e71
8d58256
Author: plegall <plg@piwigo.org> Date: Thu Jul 12 10:50:43 2018 +0200 Merge branch 'php72' of https://github.com/Infern1/Piwigo into Infern1-php72 commit8d58256c45
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Wed Mar 21 23:40:36 2018 +0100 new feedcreator version for PHP7 commitbb0fcc3a30
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Wed Mar 21 23:26:27 2018 +0100 php72 fixes, replaces each() function commit3db22c0d33
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Wed Mar 21 23:02:46 2018 +0100 More fixes for PHP7.2 commit50d8aafc77
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Mon Mar 19 23:55:21 2018 +0100 Some more replacements of create_function commit8263335c42
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Mon Mar 19 22:54:54 2018 +0100 Fixed indents commit8d58b637c6
Merge:c8b12a2
8a57d77
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Tue Feb 27 13:51:32 2018 +0100 Merge remote-tracking branch 'upstream/master' into php72 commitc8b12a2ed0
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Thu Jan 18 00:32:46 2018 +0100 Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin commitdb684f6151
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Thu Jan 18 00:23:24 2018 +0100 Update Smarty to 3.1.3 commit6a3f8f3e76
Author: Rob Lensen <rob@bsdfreaks.nl> Date: Wed Jan 17 23:40:27 2018 +0100 Initial work to support PHP 7.2
This commit is contained in:
parent
d1c2e71a56
commit
063711240a
13 changed files with 1762 additions and 1573 deletions
|
@ -1399,11 +1399,7 @@ function safe_json_decode($value)
|
|||
*/
|
||||
function prepend_append_array_items($array, $prepend_str, $append_str)
|
||||
{
|
||||
array_walk(
|
||||
$array,
|
||||
create_function('&$s', '$s = "'.$prepend_str.'".$s."'.$append_str.'";')
|
||||
);
|
||||
|
||||
array_walk($array, function(&$value, $key) use($prepend_str,$append_str) { $value = "$prepend_str$value$append_str"; } );
|
||||
return $array;
|
||||
}
|
||||
|
||||
|
@ -2162,7 +2158,7 @@ SELECT COUNT(DISTINCT(com.id))
|
|||
*/
|
||||
function safe_version_compare($a, $b, $op=null)
|
||||
{
|
||||
$replace_chars = create_function('$m', 'return ord(strtolower($m[1]));');
|
||||
$replace_chars = function($m) { return ord(strtolower($m[1])); };
|
||||
|
||||
// add dot before groups of letters (version_compare does the same thing)
|
||||
$a = preg_replace('#([0-9]+)([a-z]+)#i', '$1.$2', $a);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue