jenkins-bot has submitted this change and it was merged.

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, 6 insertions(+), 0 deletions(-)

Approvals:
  Mattflaschen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php
index ecd61fb..25a69d4 100644
--- a/maintenance/dumpBackup.php
+++ b/maintenance/dumpBackup.php
@@ -14,6 +14,12 @@
 require_once $maintPath . '/commandLine.inc';
 require_once $maintPath . '/backup.inc';
 
+// Stop if Flow not enabled on the wiki
+if ( !class_exists( 'FlowHooks' ) ) {
+       echo "Flow isn't enabled on this wiki.\n";
+       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: merged
Gerrit-Change-Id: If6f7a55c1a84516f57502c50ba449dd8be669ea2
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to