mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Added check for sitedown template in theme /templates folder.
This commit is contained in:
13
sitedown.php
13
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);
|
||||
|
Reference in New Issue
Block a user