Addshore has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/396371 )
Change subject: PageContentSave WikiPage typehint
......................................................................
PageContentSave WikiPage typehint
Change-Id: I46b4766b5815bef803e7a8a1ce4558c3b71bf667
---
M OfflineImportLexicon.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OfflineImportLexicon
refs/changes/71/396371/1
diff --git a/OfflineImportLexicon.php b/OfflineImportLexicon.php
index c7f956e..d3020a3 100644
--- a/OfflineImportLexicon.php
+++ b/OfflineImportLexicon.php
@@ -88,7 +88,7 @@
}
/**
- * $article: the article (object) saved
+ * WikiPage $wikiPage: the wikipage (object) saved
* $user: the user (object) who saved the article
* $text: the new article text
* $summary: the article summary (comment)
@@ -97,11 +97,11 @@
* $section: section #
*/
-function CheckSave( $article, $user) {
+function CheckSave( WikiPage $wikiPage, $user) {
global $wgOut, $wgScriptPath;
- $articleId = $article->getID();
- $articleTitle = $article -> getTitle();
+ $articleId = $wikiPage->getID();
+ $articleTitle = $wikiPage -> getTitle();
$userId = $user->getName();
$dbw = wfGetDB( DB_MASTER );
--
To view, visit https://gerrit.wikimedia.org/r/396371
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I46b4766b5815bef803e7a8a1ce4558c3b71bf667
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OfflineImportLexicon
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits