Last modified: 2010-09-30 13:03:35 UTC
When using script/command line tools from mediawiki/maintenance/
the global $wgTitle seems not exists and scripts fails at $wgTitle->getNamespace()
so I make small patch to skip this case (file is attached):
--- includes/SF_LinkUtils.php (revision 72575)
+++ includes/SF_LinkUtils.php (working copy)
@@ -166,7 +166,7 @@
// links, even if they've since been recreated. The same might
// hold true for other special pages.
- if ( $wgTitle->getNamespace() == NS_SPECIAL )
+ if ( !$wgTitle || $wgTitle->getNamespace() == NS_SPECIAL )
$store = smwfGetStore();
Created attachment 7678 [details]
Thanks for the patch; it was added in in version 2.0.1.