includes/pageutils.php
changeset 240 f0149a27df5f
parent 238 a78537db2850
child 266 917dcc6c4ceb
--- a/includes/pageutils.php	Tue Nov 06 11:10:18 2007 -0500
+++ b/includes/pageutils.php	Tue Nov 06 13:35:40 2007 -0500
@@ -1413,6 +1413,11 @@
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
     global $lang;
+    if ( !is_object($lang) && defined('IN_ENANO_INSTALL') )
+    {
+      // This is a special exception for the Enano installer, which doesn't init languages yet.
+      $lang = new Language('eng');
+    }
     if(!$session->get_permissions('clear_logs'))
     {
       return $lang->get('etc_access_denied');