From ea55741c384c5ebe514db2b5bf56ec741da4f551 Mon Sep 17 00:00:00 2001 From: Reinaldo Araujo Barreto Junior Date: Wed, 3 Aug 2022 21:06:29 -0300 Subject: [PATCH] =?UTF-8?q?:bug:=20#118=20corre=C3=A7=C3=A3o=20autoload=20?= =?UTF-8?q?para=20funcionar=20no=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/CreateAutoloadAPI.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/CreateAutoloadAPI.class.php b/controllers/CreateAutoloadAPI.class.php index 314df73..9fa717c 100644 --- a/controllers/CreateAutoloadAPI.class.php +++ b/controllers/CreateAutoloadAPI.class.php @@ -33,6 +33,7 @@ public function show($print = false) $this->addLine('if ( !function_exists( \''.$autoloadName.'\') ) {'); $this->addLine(ESP.'function '.$autoloadName.'( $class_name )'); $this->addLine(ESP.'{'); + $this->addLine(ESP.ESP.'$class_name = str_replace(\'\\\',DS,$class_name);'); $this->addLine(ESP.ESP.'$path = __DIR__.DS.$class_name.\'.class.php\';'); $this->addLine(ESP.ESP.'if (file_exists($path)){'); $this->addLine(ESP.ESP.ESP.'require_once $path;');