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:
plegall
2015-12-10 14:03:54 +01:00
parent fa10e0945e
commit ed8db3da27
11 changed files with 20 additions and 23 deletions
+2 -2
View File
@@ -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']));
}
}
?>
?>