* Added wfDie() wrapper, and some manual die(-1), to force the return code
[lhc/web/wiklou.git] / maintenance / mwdocgen.php
index 3b36bad..135f7ed 100755 (executable)
@@ -23,7 +23,8 @@
 #
 
 if( php_sapi_name() != 'cli' ) {
-       die( "Run me from the command line." );
+       echo "Run me from the command line.";
+       die( -1 );
 }
 
 /** Phpdoc script with full path */