diff options
author | plegall <plg@piwigo.org> | 2015-12-10 14:03:54 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2015-12-10 14:03:54 +0100 |
commit | ed8db3da2787d8068f18e0ddc806294f759b8010 (patch) | |
tree | ac5aedac9d475fa8130e058fd2e8412ac4368cb6 /admin/include/languages.class.php | |
parent | fa10e0945ecd45bfe78a2c8fb015a43092b4944b (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/include/languages.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/languages.class.php b/admin/include/languages.class.php index 351e36d53..0f3e98eec 100644 --- a/admin/include/languages.class.php +++ b/admin/include/languages.class.php @@ -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'])); } } -?>
\ No newline at end of file +?> |