Fixes in paths

This commit is contained in:
absurdo 2023-12-12 23:42:41 +01:00
parent da0a8e03b2
commit 1096ecdf54
2 changed files with 5 additions and 3 deletions

View file

@ -28,6 +28,8 @@ class Config {
function get_controller($controller, $args=[]) { function get_controller($controller, $args=[]) {
$controller=__DIR__.'/../'.$controller;
if(is_file($controller)) { if(is_file($controller)) {
include_once($controller); include_once($controller);

View file

@ -591,12 +591,12 @@ class Utils {
* @param $path Path where search the config. * @param $path Path where search the config.
*/ */
static public function load_config($name_config, $path="./settings") static public function load_config($name_config, $path="settings")
{ {
//load_libraries(array($name_config), PhangoVar::$base_path.'/modules/'.$module.'/config/'); //load_libraries(array($name_config), PhangoVar::$base_path.'/modules/'.$module.'/config/');
$file=$path.'/'.$name_config.'.php'; $file=__DIR__.'/../'.$path.'/'.$name_config.'.php';
if(is_file($file) && !isset(Utils::$cache_config[$file])) if(is_file($file) && !isset(Utils::$cache_config[$file]))
{ {