Skip to content

Commit 38f9c76

Browse files
committed
fixes
1 parent 95b3f37 commit 38f9c76

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

bootstrap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
*
1212
*/
1313

14-
error_reporting(-1);
14+
ini_set('display_errors', 1);
15+
ini_set('display_startup_errors', 1);
16+
error_reporting(E_ALL & ~E_NOTICE); // Show all except notice
17+
1518

1619
include __DIR__ . '/config/system.php';
1720
include __DIR__ . '/config/cache.php';

system/Template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function __construct (Config $conf, Language $language) {
3333
}
3434
$this->assign('baseurl',$baseurl);
3535

36-
$this->setTemplateDir(ROOT_DIR.'/App/views/')
36+
$this->setTemplateDir(ROOT_DIR.'/app/views/')
3737
->setCompileDir(ROOT_DIR."/storage/cache/smarty")
3838
->setCacheDir(ROOT_DIR."/storage/cache/smarty")
3939
->setConfigDir(ROOT_DIR."/storage/languages")
40-
->addPluginsDir(ROOT_DIR."/plubins/smarty");
40+
->addPluginsDir(ROOT_DIR."/plugins/smarty");
4141

4242
// register basic internal functions
4343
$this->registerPlugin('function', "show_msg", array($this, 'show_msg'));

system/autoload.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?php
22
/* autoload with namespaces as dir */
33
function AutoLoader($className) {
4-
$file = str_replace('\\',DIRECTORY_SEPARATOR,strtolower($className));
4+
$path = str_replace('\\',DIRECTORY_SEPARATOR,$className);
5+
$file = after_last(DIRECTORY_SEPARATOR,$path);
6+
$dir = strtolower(before($file,$path));
7+
$file = $dir.$file;
58
// echo 'load '.ROOT_DIR.DIRECTORY_SEPARATOR.$file.'.php<br />';
69
if (is_readable(ROOT_DIR.DIRECTORY_SEPARATOR.$file.'.php')) {
710
// echo 'readit<br />';

0 commit comments

Comments
 (0)