From 343c3bd0ce478122e81c15c9f8f80b4135e853dc Mon Sep 17 00:00:00 2001 From: Tom Homer Date: Wed, 16 Nov 2016 11:13:42 -0500 Subject: [PATCH] Moved template library call to after loading of template class --- public_html/lib-common.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public_html/lib-common.php b/public_html/lib-common.php index e5e832a30..e51bf2882 100755 --- a/public_html/lib-common.php +++ b/public_html/lib-common.php @@ -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'; @@ -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'])) {