IAlex has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56381
Change subject: Fix case of some Title methods (final round)
......................................................................
Fix case of some Title methods (final round)
Change-Id: I41afed9c1d19aaca62685a51f881cf04a10998d8
---
M includes/EditPage.php
M includes/actions/InfoAction.php
M includes/actions/RawAction.php
M includes/parser/Parser.php
4 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/81/56381/1
diff --git a/includes/EditPage.php b/includes/EditPage.php
index bbe7d79..f88dc90 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -100,7 +100,7 @@
/**
* Status: user tried to create this page, but is not allowed to do that
- * ( Title->usercan('create') == false )
+ * ( Title->userCan('create') == false )
*/
const AS_NO_CREATE_PERMISSION = 223;
diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 1e312d7..ac9107f 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -229,7 +229,7 @@
}
// Default sort key
- $sortKey = $title->getCategorySortKey();
+ $sortKey = $title->getCategorySortkey();
if ( !empty( $pageProperties['defaultsort'] ) ) {
$sortKey = $pageProperties['defaultsort'];
}
diff --git a/includes/actions/RawAction.php b/includes/actions/RawAction.php
index d1d457c..f8209e6 100644
--- a/includes/actions/RawAction.php
+++ b/includes/actions/RawAction.php
@@ -195,7 +195,7 @@
case 'next':
# output next revision, or nothing if there
isn't one
if( $oldid ) {
- $oldid =
$this->getTitle()->getNextRevisionId( $oldid );
+ $oldid =
$this->getTitle()->getNextRevisionID( $oldid );
}
$oldid = $oldid ? $oldid : -1;
break;
@@ -205,7 +205,7 @@
# get the current revision so we can
get the penultimate one
$oldid = $this->page->getLatest();
}
- $prev =
$this->getTitle()->getPreviousRevisionId( $oldid );
+ $prev =
$this->getTitle()->getPreviousRevisionID( $oldid );
$oldid = $prev ? $prev : -1;
break;
case 'cur':
diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php
index 9176f6a..5b14ad2 100644
--- a/includes/parser/Parser.php
+++ b/includes/parser/Parser.php
@@ -2770,7 +2770,7 @@
$value = wfEscapeWikiText(
$subjPage->getPrefixedURL() );
break;
case 'pageid': // requested in bug 23427
- $pageid = $this->getTitle()->getArticleId();
+ $pageid = $this->getTitle()->getArticleID();
if( $pageid == 0 ) {
# 0 means the page doesn't exist in the
database,
# which means the user is previewing a
new page.
--
To view, visit https://gerrit.wikimedia.org/r/56381
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I41afed9c1d19aaca62685a51f881cf04a10998d8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits