Index: trunk/phase3/includes/api/ApiComparePages.php |
— | — | @@ -63,13 +63,13 @@ |
64 | 64 | * @param $title string |
65 | 65 | * @return int |
66 | 66 | */ |
67 | | - private function revisionOrTitle( $revision, $title ) { |
| 67 | + private function revisionOrTitle( $revision, $titleText ) { |
68 | 68 | if( $revision ){ |
69 | 69 | return $revision; |
70 | | - } elseif( $title ) { |
71 | | - $title = Title::newFromText( $title ); |
| 70 | + } elseif( $titleText ) { |
| 71 | + $title = Title::newFromText( $titleText ); |
72 | 72 | if( !$title ){ |
73 | | - $this->dieUsageMsg( array( 'invalidtitle', $title ) ); |
| 73 | + $this->dieUsageMsg( array( 'invalidtitle', $titleText ) ); |
74 | 74 | } |
75 | 75 | return $title->getLatestRevID(); |
76 | 76 | } |