diff --git a/sitedown.php b/sitedown.php index 71d634979..95218b630 100644 --- a/sitedown.php +++ b/sitedown.php @@ -3,17 +3,13 @@ + ----------------------------------------------------------------------------+ | e107 website system | -| Copyright (C) 2008-2009 e107 Inc +| Copyright (C) 2008-2015 e107 Inc | http://e107.org | | | Released under the terms and conditions of the | GNU General Public License (http://gnu.org). | -| $Source: /cvs_backup/e107_0.8/sitedown.php,v $ -| $Revision$ -| $Date$ -| $Author$ +----------------------------------------------------------------------------+ */ require_once('class2.php'); @@ -32,7 +28,11 @@ require_once(e_CORE.'shortcodes/batch/sitedown_shortcodes.php'); if (!$SITEDOWN_TABLE) { - if (file_exists(THEME.'sitedown_template.php')) + if (file_exists(THEME.'templates/sitedown_template.php')) //v2.x location. + { + require_once(THEME.'templates/sitedown_template.php'); + } + elseif (file_exists(THEME.'sitedown_template.php')) //v1.x location { require_once(THEME.'sitedown_template.php'); } @@ -41,4 +41,5 @@ if (!$SITEDOWN_TABLE) require_once(e_CORE.'templates/sitedown_template.php'); } } + echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);