Fix loading extension in console

This commit is contained in:
2022-07-23 23:47:15 -04:00
parent 27f9ecf2c4
commit f34632e8db
+1 -1
View File
@@ -8,7 +8,7 @@ class backend {
function __construct() {
$this->USER = $_SERVER['SCRIPT_FILENAME'];
$this->USER = (array_key_exists('PWD',$_SERVER) && is_dir($_SERVER['PWD'])) ? $_SERVER['PWD'] : $_SERVER['SCRIPT_FILENAME'];
$this->USER = str_replace('/home', '', $this->USER);
$this->USER = strtok($this->USER, '/');
if ($this->USER == 'opt') {