dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: Mark public MediaHandler/ImageHandler methods as such
[lhc/web/wiklou.git]
/
includes
/
ForkController.php
diff --git
a/includes/ForkController.php
b/includes/ForkController.php
index
2dde17b
..
cc16964
100644
(file)
--- 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;