Fixes in paths
This commit is contained in:
parent
da0a8e03b2
commit
1096ecdf54
2 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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]))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue