summaryrefslogtreecommitdiff
path: root/site-offline.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-12-01 18:15:07 +0000
committerfisharebest <fisharebest@gmail.com>2011-12-01 18:15:07 +0000
commitcb9741137e5cacfc990a6d120c750ae6bb887bee (patch)
treeb45ffa1d2f495a48eb00fef20e14a427452721e9 /site-offline.php
parent12d21b5478a41b073de954d2306f759ec7f15eae (diff)
downloadwebtrees-cb9741137e5cacfc990a6d120c750ae6bb887bee.tar.gz
webtrees-cb9741137e5cacfc990a6d120c750ae6bb887bee.tar.bz2
webtrees-cb9741137e5cacfc990a6d120c750ae6bb887bee.zip
Fix: PHP errors in site-offline and site-unavailable
Diffstat (limited to 'site-offline.php')
-rw-r--r--site-offline.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/site-offline.php b/site-offline.php
index 0bab1d884c..4c7d498608 100644
--- a/site-offline.php
+++ b/site-offline.php
@@ -31,6 +31,8 @@ define('WT_GED_ID', 0);
define('WT_USER_ID', 0);
define('WT_DATA_DIR', realpath('data').DIRECTORY_SEPARATOR);
define('WT_DEBUG_LANG', false); // The translation library needs this
+$WT_SESSION=new stdClass();
+$WT_SESSION->locale='';
// Invoke the Zend Framework Autoloader, so we can use Zend_XXXXX and WT_XXXXX classes
set_include_path(WT_ROOT.'library'.PATH_SEPARATOR.get_include_path());
require_once 'Zend/Loader/Autoloader.php';