includes/common.php
changeset 1206 50f6c144ec68
parent 1195 449fdd113eb0
child 1227 bdac73ed481e
--- a/includes/common.php	Wed Jan 06 01:18:19 2010 -0500
+++ b/includes/common.php	Wed Jan 06 02:02:51 2010 -0500
@@ -400,9 +400,6 @@
   
   profiler_log('Checked for (and ran, if applicable) preloader');
   
-  // All checks passed! Start the main components up.  
-  $session->start();
-  
   // Add all of our built in special pages
   foreach ( array('SpecialUserFuncs', 'SpecialPageFuncs', 'SpecialAdmin', 'SpecialCSS', 'SpecialUpDownload', 'SpecialSearch', 'PrivateMessages', 'SpecialGroups', 'SpecialLog') as $plugin )
   {
@@ -414,6 +411,9 @@
   }
   profiler_log('Added special pages');
   
+  // All checks passed! Start the main components up.  
+  $session->start();
+  
   // This is where plugins will want to add pages from 1.1.x on out. You can still add
   // pages at base_classes_initted but the titles won't be localized. This is because
   // the session manager has to be started before localization will work in the user's