Skip to content

Commit

Permalink
tweaked sql_autoload_register inside ignition.php for improved compat…
Browse files Browse the repository at this point in the history
…ibility with Packagist
  • Loading branch information
trongate committed Jan 2, 2023
1 parent b32bb60 commit 4c85ee1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engine/ignition.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
$class_name = 'tg_helpers/'.$class_name;
}

require_once $class_name . '.php';
$target_filename = realpath(__DIR__.'/'.$class_name.'.php');

if (file_exists($target_filename)) {
return require_once($target_filename);
}

return false;
});

function load($template_file, $data=NULL) {
Expand Down

0 comments on commit 4c85ee1

Please sign in to comment.