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
CLI-protect the usemod importer, remove the old version
[lhc/web/wiklou.git]
/
maintenance
/
importUseModWiki.php
diff --git
a/maintenance/importUseModWiki.php
b/maintenance/importUseModWiki.php
index
318483e
..
720e4ab
100644
(file)
--- a/
maintenance/importUseModWiki.php
+++ b/
maintenance/importUseModWiki.php
@@
-21,6
+21,9
@@
* @subpackage Maintenance
*/
+if( php_sapi_name() != 'cli' ) {
+ die( "Please customize the settings and run me from the command line." );
+}
/** Set these correctly! */
$wgImportEncoding = "CP1252"; /* We convert all to UTF-8 */