X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FForkController.php;h=cc16964e1fdd36a24d9f030692c49f393ce5c6f0;hp=2dde17be0803e073ea7a5e69c724d38cb4eac6dc;hb=b33148f7d6b0b59c062c423943e841840e6620ed;hpb=57eaa2bf04ce1b48bd89c10defe4de5b7d31f047 diff --git a/includes/ForkController.php b/includes/ForkController.php index 2dde17be08..cc16964e1f 100644 --- a/includes/ForkController.php +++ b/includes/ForkController.php @@ -54,7 +54,7 @@ class ForkController { const RESTART_ON_ERROR = 1; public function __construct( $numProcs, $flags = 0 ) { - if ( PHP_SAPI != 'cli' ) { + if ( !wfIsCLI() ) { throw new MWException( "ForkController cannot be used from the web." ); } $this->procsToStart = $numProcs;