Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/264129
Change subject: Don't try and run dumpBackup.php if not enabled on the wiki
......................................................................
Don't try and run dumpBackup.php if not enabled on the wiki
Bug: T119511
Change-Id: If6f7a55c1a84516f57502c50ba449dd8be669ea2
---
M maintenance/dumpBackup.php
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/29/264129/1
diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php
index ecd61fb..c4e793f 100644
--- a/maintenance/dumpBackup.php
+++ b/maintenance/dumpBackup.php
@@ -14,6 +14,11 @@
require_once $maintPath . '/commandLine.inc';
require_once $maintPath . '/backup.inc';
+// Stop if Flow not enabled on the wiki
+if ( !class_exists( 'FlowHooks' ) ) {
+ die( 1 );
+}
+
class FlowBackupDumper extends BackupDumper {
function dump( $history, $text = Exporter::TEXT ) {
# Notice messages will foul up your XML output even if they're
--
To view, visit https://gerrit.wikimedia.org/r/264129
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6f7a55c1a84516f57502c50ba449dd8be669ea2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits