r31789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31788‎ | r31789 | r31790 >
Date:16:04, 11 March 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Fix of Bug 13142 as suggested.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/maintenance/SMW_dumpRDF.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_dumpRDF.php
@@ -13,7 +13,10 @@
1414 * -d <delay> slows down the export in order to stress the server less,
1515 * sleeping for <delay> milliseconds every now and then
1616 * -e <each> after how many exported entities should the server take a nap?
17 - *
 17+ * --server=<server> The protocol and server name to as base URLs, e.g.
 18+ * http://en.wikipedia.org. This is sometimes necessary because
 19+ * server name detection may fail in command line scripts.
 20+ *
1821 * @author Markus Krötzsch
1922 */
2023
@@ -51,6 +54,10 @@
5255 $export_ns = false;
5356 }
5457
 58+if ( isset( $options['server'] ) ) {
 59+ $wgServer = $options['server'];
 60+}
 61+
5562 $exRDF = new OWLExport();
5663 $exRDF->printAll($outfile, $export_ns, $delay, $delayeach);
5764

Status & tagging log