Skip to content

Commit e695951

Browse files
committed
* Skip in CLI mode (to prevent hanging of maintenance scripts)
1 parent 0697b0c commit e695951

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: SemanticDependencyUpdater.php

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
die( "ERROR: Semantic MediaWiki must be installed for Semantic Dummy Editor to run!" );
2121
}
2222

23+
// Don't run in CLI mode (maintainence scripts)
24+
if (php_sapi_name() == "cli") {
25+
return false;
26+
wfDebugLog('SemanticDependencyUpdater', "[SDU] Skipping in CLI Mode");
27+
}
28+
2329
define( 'SDU_VERSION', '1.0.0' );
2430

2531
$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(

0 commit comments

Comments
 (0)