Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/97551
Change subject: Don't use $wgArticle when we're not a global
......................................................................
Don't use $wgArticle when we're not a global
Change-Id: I90447c73d7a0c283a67a9e80d95044659e71c977
---
M maintenance/RenameCategories.php
M maintenance/massedit.php
2 files changed, 8 insertions(+), 8 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/51/97551/1
diff --git a/maintenance/RenameCategories.php b/maintenance/RenameCategories.php
index b601d09..9d30a8a 100644
--- a/maintenance/RenameCategories.php
+++ b/maintenance/RenameCategories.php
@@ -222,9 +222,9 @@
}
// Fetch text
- $wgArticle = new Article( $wgTitle );
- $wgArticle->fetchContent();
- $text = $wgArticle->getContent() ;
+ $article = new Article( $wgTitle );
+ $article->fetchContent();
+ $text = $article->getContent() ;
if ($text == '') echo 'empty!';
// Text conditions
@@ -278,7 +278,7 @@
}
// Actual modification
- $success = $wgArticle->doEdit( $text, $summary,
+ $success = $article->doEdit( $text, $summary,
( $minor ? EDIT_MINOR : 0 ) |
( $bot ? EDIT_FORCE_BOT : 0 ) |
( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |
diff --git a/maintenance/massedit.php b/maintenance/massedit.php
index 7662ca4..ed39d44 100644
--- a/maintenance/massedit.php
+++ b/maintenance/massedit.php
@@ -145,10 +145,10 @@
}
// Fetch text
- $wgArticle = new Article( $wgTitle );
+ $article = new Article( $wgTitle );
- $wgArticle->fetchContent();
- $text = $wgArticle->getContent() ;
+ $article->fetchContent();
+ $text = $article->getContent() ;
if ($text == '') echo 'empty!';
// Text conditions
@@ -201,7 +201,7 @@
}
// Actual modification
- $success = $wgArticle->doEdit( $text, $summary,
+ $success = $article->doEdit( $text, $summary,
( $minor ? EDIT_MINOR : 0 ) |
( $bot ? EDIT_FORCE_BOT : 0 ) |
( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |
--
To view, visit https://gerrit.wikimedia.org/r/97551
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90447c73d7a0c283a67a9e80d95044659e71c977
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits