コード例 #1
0
ファイル: Wiki.php プロジェクト: Tarendai/spring-website
 /**
  * Run the current MediaWiki instance
  * index.php just calls this
  */
 public function run()
 {
     try {
         $this->checkMaxLag();
         $this->main();
         if (function_exists('fastcgi_finish_request')) {
             fastcgi_finish_request();
         }
         $this->triggerJobs();
         $this->restInPeace();
     } catch (Exception $e) {
         MWExceptionHandler::handle($e);
     }
 }
コード例 #2
0
ファイル: Wiki.php プロジェクト: mangowi/mediawiki
 /**
  * Run the current MediaWiki instance
  * index.php just calls this
  */
 public function run()
 {
     try {
         $this->checkMaxLag();
         $this->main();
         $this->restInPeace();
     } catch (Exception $e) {
         MWExceptionHandler::handle($e);
     }
 }
コード例 #3
0
 /**
  * Run the current MediaWiki instance
  * index.php just calls this
  */
 public function run()
 {
     try {
         $this->checkMaxLag();
         try {
             $this->main();
         } catch (ErrorPageError $e) {
             // Bug 62091: while exceptions are convenient to bubble up GUI errors,
             // they are not internal application faults. As with normal requests, this
             // should commit, print the output, do deferred updates, jobs, and profiling.
             wfGetLBFactory()->commitMasterChanges();
             $e->report();
             // display the GUI error
         }
         if (function_exists('fastcgi_finish_request')) {
             fastcgi_finish_request();
         }
         $this->triggerJobs();
         $this->restInPeace();
     } catch (Exception $e) {
         MWExceptionHandler::handle($e);
     }
 }