mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 13:33:54 +02:00
bug #385 compatibility with PHP7
* replace old-style constructor with PHP5-style constructor (__construct) * do not call set_magic_quotes_runtime() any longer * avoid automatic conversion from array to string
This commit is contained in:
@@ -30,7 +30,7 @@ class languages
|
||||
/**
|
||||
* Initialize $fs_languages and $db_languages
|
||||
*/
|
||||
function languages($target_charset = null)
|
||||
function __construct($target_charset = null)
|
||||
{
|
||||
$this->get_fs_languages($target_charset);
|
||||
}
|
||||
@@ -408,4 +408,4 @@ UPDATE '.USER_INFOS_TABLE.'
|
||||
return strcmp(strtolower($a['extension_name']), strtolower($b['extension_name']));
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user