fix path
This commit is contained in:
parent
848dcb5caf
commit
1ec8049068
6
init.php
6
init.php
@ -76,10 +76,10 @@ if ($_app_stage != 'Live') {
|
|||||||
define('U', APP_URL . '/index.php?_route=');
|
define('U', APP_URL . '/index.php?_route=');
|
||||||
|
|
||||||
// notification message
|
// notification message
|
||||||
if (file_exists($root_path . $UPLOAD_PATH . DIRECTORY_SEPARATOR . "notifications.json")) {
|
if (file_exists($UPLOAD_PATH . DIRECTORY_SEPARATOR . "notifications.json")) {
|
||||||
$_notifmsg = json_decode(file_get_contents($root_path . $UPLOAD_PATH . DIRECTORY_SEPARATOR . 'notifications.json'), true);
|
$_notifmsg = json_decode(file_get_contents($UPLOAD_PATH . DIRECTORY_SEPARATOR . 'notifications.json'), true);
|
||||||
}
|
}
|
||||||
$_notifmsg_default = json_decode(file_get_contents($root_path . $UPLOAD_PATH . DIRECTORY_SEPARATOR . 'notifications.default.json'), true);
|
$_notifmsg_default = json_decode(file_get_contents($UPLOAD_PATH . DIRECTORY_SEPARATOR . 'notifications.default.json'), true);
|
||||||
|
|
||||||
//register all plugin
|
//register all plugin
|
||||||
foreach (glob(File::pathFixer($PLUGIN_PATH . DIRECTORY_SEPARATOR . '*.php')) as $filename) {
|
foreach (glob(File::pathFixer($PLUGIN_PATH . DIRECTORY_SEPARATOR . '*.php')) as $filename) {
|
||||||
|
@ -274,7 +274,7 @@ switch ($action) {
|
|||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$c->delete();
|
if($c) $c->delete();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user