Fix case of some Title methods (final round)
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 28 Mar 2013 10:30:06 +0000 (11:30 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 28 Mar 2013 10:30:06 +0000 (11:30 +0100)
Change-Id: I41afed9c1d19aaca62685a51f881cf04a10998d8

includes/EditPage.php
includes/actions/InfoAction.php
includes/actions/RawAction.php
includes/parser/Parser.php

index bbe7d79..f88dc90 100644 (file)
@@ -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;
 
index 1e312d7..ac9107f 100644 (file)
@@ -229,7 +229,7 @@ class InfoAction extends FormlessAction {
                }
 
                // Default sort key
-               $sortKey = $title->getCategorySortKey();
+               $sortKey = $title->getCategorySortkey();
                if ( !empty( $pageProperties['defaultsort'] ) ) {
                        $sortKey = $pageProperties['defaultsort'];
                }
index d1d457c..f8209e6 100644 (file)
@@ -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':
index 9176f6a..5b14ad2 100644 (file)
@@ -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.