Skip to content

Commit

Permalink
Moved template library call to after loading of template class
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Nov 16, 2016
1 parent 11f3d48 commit 343c3bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions public_html/lib-common.php
Expand Up @@ -186,12 +186,6 @@
*/
$_DEVICE = new Device();

/**
* This is our HTML template class. It is the same one found in PHPLib and is
* licensed under the LGPL. See that file for details.
*/
require_once $_CONF['path_system'] . 'lib-template.php';

// This is the security library used for application security
require_once $_CONF['path_system'] . 'lib-security.php';

Expand Down Expand Up @@ -369,6 +363,9 @@
'hook' => array('set_root' => 'CTL_setTemplateRoot'), // Function found in lib-template and is used to add the ability for child themes
);
\Geeklog\Autoload::load('template');
// Template library contains helper functions for template class
require_once $_CONF['path_system'] . 'lib-template.php';


// Set language
if (isset($_COOKIE[$_CONF['cookie_language']]) && empty($_USER['language'])) {
Expand Down

0 comments on commit 343c3bd

Please sign in to comment.