From f4b1735753782c0cebf0d86debc8142360c328de Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 28 Mar 2013 11:30:06 +0100 Subject: [PATCH] Fix case of some Title methods (final round) Change-Id: I41afed9c1d19aaca62685a51f881cf04a10998d8 --- includes/EditPage.php | 2 +- includes/actions/InfoAction.php | 2 +- includes/actions/RawAction.php | 4 ++-- includes/parser/Parser.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index bbe7d794d9..f88dc90c15 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -100,7 +100,7 @@ class EditPage { /** * 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 1e312d7af0..ac9107f2c4 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -229,7 +229,7 @@ class InfoAction extends FormlessAction { } // 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 d1d457c0c2..f8209e6a09 100644 --- a/includes/actions/RawAction.php +++ b/includes/actions/RawAction.php @@ -195,7 +195,7 @@ class RawAction extends FormlessAction { 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 @@ class RawAction extends FormlessAction { # 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 9176f6ade2..5b14ad21b9 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2770,7 +2770,7 @@ class Parser { $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. -- 2.20.1