Minor fixes in corelibs

This commit is contained in:
Clemens Schwaighofer
2020-01-22 15:14:25 +09:00
parent 3267fc0266
commit f7db84c62f
3 changed files with 3 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ return [
"./www/configs/config.db.php",
"./www/configs/config.host.php",
"./www/configs/config.path.php",
"./www/configs/config.other.php",
"./www/configs/config.master.php",
"./www/includes/admin_header.php",
],

View File

@@ -23,7 +23,7 @@ if ($smarty->USE_PROTOTYPE) {
$smarty->ADMIN_JAVASCRIPT = 'edit.jq.js';
$smarty->JS_SPECIAL_TEMPLATE_NAME = 'jquery.test.js';
}
$smarty->PAGE_WIDTH = "100%";
$smarty->PAGE_WIDTH = '100%';
// require BASE.INCLUDES.'admin_set_paths.php';
$smarty->setSmartyPaths();

View File

@@ -2725,7 +2725,7 @@ class Basic
break;
default:
$hash = 'sha256';
if (is_defined(DEFAULT_HASH)) {
if (defined(DEFAULT_HASH)) {
$hash = DEFAULT_HASH;
}
$uniq_id = hash($hash, uniqid((string)rand(), true));