includes/common.php
changeset 1206 50f6c144ec68
parent 1195 449fdd113eb0
child 1227 bdac73ed481e
equal deleted inserted replaced
1205:c922ef08167a 1206:50f6c144ec68
   398     call_user_func($fname);
   398     call_user_func($fname);
   399   }
   399   }
   400   
   400   
   401   profiler_log('Checked for (and ran, if applicable) preloader');
   401   profiler_log('Checked for (and ran, if applicable) preloader');
   402   
   402   
   403   // All checks passed! Start the main components up.  
       
   404   $session->start();
       
   405   
       
   406   // Add all of our built in special pages
   403   // Add all of our built in special pages
   407   foreach ( array('SpecialUserFuncs', 'SpecialPageFuncs', 'SpecialAdmin', 'SpecialCSS', 'SpecialUpDownload', 'SpecialSearch', 'PrivateMessages', 'SpecialGroups', 'SpecialLog') as $plugin )
   404   foreach ( array('SpecialUserFuncs', 'SpecialPageFuncs', 'SpecialAdmin', 'SpecialCSS', 'SpecialUpDownload', 'SpecialSearch', 'PrivateMessages', 'SpecialGroups', 'SpecialLog') as $plugin )
   408   {
   405   {
   409     $funcname = "{$plugin}_paths_init";
   406     $funcname = "{$plugin}_paths_init";
   410     if ( function_exists($funcname) )
   407     if ( function_exists($funcname) )
   411     {
   408     {
   412       $funcname();
   409       $funcname();
   413     }
   410     }
   414   }
   411   }
   415   profiler_log('Added special pages');
   412   profiler_log('Added special pages');
       
   413   
       
   414   // All checks passed! Start the main components up.  
       
   415   $session->start();
   416   
   416   
   417   // This is where plugins will want to add pages from 1.1.x on out. You can still add
   417   // This is where plugins will want to add pages from 1.1.x on out. You can still add
   418   // pages at base_classes_initted but the titles won't be localized. This is because
   418   // pages at base_classes_initted but the titles won't be localized. This is because
   419   // the session manager has to be started before localization will work in the user's
   419   // the session manager has to be started before localization will work in the user's
   420   // preferred language.
   420   // preferred language.