Skip to content

Commit

Permalink
* fixed Twig loading on case-sensitive systems
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Aug 28, 2017
1 parent 6e6ce55 commit d88de8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$cache = Cache::getInstance($config['cache_engine'], $config['cache_prefix']);

// twig
require_once LIBS . 'twig/Autoloader.php';
require_once LIBS . 'Twig/Autoloader.php';
Twig_Autoloader::register();

$loader = new Twig_Loader_Filesystem(SYSTEM . 'templates');
Expand Down
3 changes: 2 additions & 1 deletion system/migrations/4.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php
$db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;");
if(!fieldExist('id', TABLE_PREFIX . 'monsters'))
$db->query("ALTER TABLE `" . TABLE_PREFIX . "monsters` ADD `id` int(11) NOT NULL AUTO_INCREMENT primary key FIRST;");
?>
3 changes: 2 additions & 1 deletion system/migrations/6.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php
$db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;");
if(!fieldExist('enabled', TABLE_PREFIX . 'hooks'))
$db->query("ALTER TABLE `" . TABLE_PREFIX . "hooks` ADD `enabled` INT(1) NOT NULL DEFAULT 1;");
?>

0 comments on commit d88de8e

Please sign in to comment.