Index: trunk/extensions/MirrorTools/MirrorTools.classes.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | wfProfileOut( __METHOD__ . '-checks' ); |
111 | 111 | |
112 | 112 | # If article is new, insert it. |
113 | | - $aid = $this->mTitle->getArticleID( GAID_FOR_UPDATE ); |
| 113 | + $aid = $this->mTitle->getArticleID( Title::GAID_FOR_UPDATE ); |
114 | 114 | if ( 0 == $aid ) { |
115 | 115 | // Late check for create permission, just in case *PARANOIA* |
116 | 116 | if ( !$this->mTitle->userCan( 'create' ) ) { |
Index: trunk/extensions/GlobalUsage/GlobalUsageHooks.php |
— | — | @@ -24,11 +24,11 @@ |
25 | 25 | $gu = self::getGlobalUsage(); |
26 | 26 | if ( $wgUseDumbLinkUpdate ) { |
27 | 27 | // Delete all entries to the page |
28 | | - $gu->deleteLinksFromPage( $title->getArticleId( GAID_FOR_UPDATE ) ); |
| 28 | + $gu->deleteLinksFromPage( $title->getArticleId( Title::GAID_FOR_UPDATE ) ); |
29 | 29 | // Re-insert new usage for the page |
30 | 30 | $gu->insertLinks( $title, $missingFiles ); |
31 | 31 | } else { |
32 | | - $articleId = $title->getArticleId( GAID_FOR_UPDATE ); |
| 32 | + $articleId = $title->getArticleId( Title::GAID_FOR_UPDATE ); |
33 | 33 | $existing = $gu->getLinksFromPage( $articleId ); |
34 | 34 | |
35 | 35 | // Calculate changes |
Index: trunk/extensions/GlobalUsage/GlobalUsage_body.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | * @param $title Title Title of the page |
23 | 23 | * @param $images array Array of db keys of images used |
24 | 24 | */ |
25 | | - public function insertLinks( $title, $images, $pageIdFlags = GAID_FOR_UPDATE ) { |
| 25 | + public function insertLinks( $title, $images, $pageIdFlags = Title::GAID_FOR_UPDATE ) { |
26 | 26 | $insert = array(); |
27 | 27 | foreach ( $images as $name ) { |
28 | 28 | $insert[] = array( |
Index: trunk/extensions/GlobalUsage/refreshGlobalimagelinks.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | $title = Title::newFromRow( reset( $rows ) ); |
84 | 84 | $images = array_keys( $rows ); |
85 | 85 | # Since we have a pretty accurate page_id, don't specify |
86 | | - # GAID_FOR_UPDATE |
| 86 | + # Title::GAID_FOR_UPDATE |
87 | 87 | $gu->insertLinks( $title, $images, /* $flags */ 0 ); |
88 | 88 | } |
89 | 89 | } |
Index: trunk/extensions/Wikilog/WikilogCommentsPage.php |
— | — | @@ -399,7 +399,7 @@ |
400 | 400 | array( 'content', 'parsemag' ), |
401 | 401 | $comment->mUserText |
402 | 402 | ); |
403 | | - $id = $title->getArticleID( GAID_FOR_UPDATE ); |
| 403 | + $id = $title->getArticleID( Title::GAID_FOR_UPDATE ); |
404 | 404 | if ( $this->doDeleteArticle( $reason, false, $id ) ) { |
405 | 405 | $comment->deleteComment(); |
406 | 406 | $log->addEntry( 'c-reject', $title, '' ); |
Index: trunk/extensions/Wikilog/WikilogComment.php |
— | — | @@ -243,7 +243,7 @@ |
244 | 244 | if ( $this->mCommentTitle ) { |
245 | 245 | return $this->mCommentTitle; |
246 | 246 | } else if ( $this->mCommentPage ) { |
247 | | - return Title::newFromID( $this->mCommentPage, GAID_FOR_UPDATE ); |
| 247 | + return Title::newFromID( $this->mCommentPage, Title::GAID_FOR_UPDATE ); |
248 | 248 | } else { |
249 | 249 | $it = $this->mItem->mTitle; |
250 | 250 | return Title::makeTitle( |
Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | $srev = $this->getStableRev( $flags ); |
111 | 111 | if ( $srev ) { |
112 | 112 | if ( $flags & FR_MASTER ) { |
113 | | - $latest = $this->getTitle()->getLatestRevID( GAID_FOR_UPDATE ); |
| 113 | + $latest = $this->getTitle()->getLatestRevID( Title::GAID_FOR_UPDATE ); |
114 | 114 | } else { |
115 | 115 | $latest = $this->getLatest(); |
116 | 116 | } |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -716,7 +716,7 @@ |
717 | 717 | } |
718 | 718 | # Get the latest revision ID if not set |
719 | 719 | if ( !$latest ) { |
720 | | - $latest = $article->getTitle()->getLatestRevID( GAID_FOR_UPDATE ); |
| 720 | + $latest = $article->getTitle()->getLatestRevID( Title::GAID_FOR_UPDATE ); |
721 | 721 | } |
722 | 722 | # Get the highest quality revision (not necessarily this one) |
723 | 723 | $dbw = wfGetDB( DB_MASTER ); |
— | — | @@ -776,7 +776,7 @@ |
777 | 777 | } |
778 | 778 | # Get the latest revision ID if not set |
779 | 779 | if ( !$latest ) { |
780 | | - $latest = $article->getTitle()->getLatestRevID( GAID_FOR_UPDATE ); |
| 780 | + $latest = $article->getTitle()->getLatestRevID( Title::GAID_FOR_UPDATE ); |
781 | 781 | } |
782 | 782 | $pageId = $article->getId(); |
783 | 783 | # Update pending times for each level, going from highest to lowest |
Index: trunk/extensions/FlaggedRevs/forms/PageStabilityForm.php |
— | — | @@ -290,7 +290,7 @@ |
291 | 291 | protected function updateLogsAndHistory( $reset ) { |
292 | 292 | global $wgContLang; |
293 | 293 | $article = new Article( $this->page ); |
294 | | - $latest = $this->page->getLatestRevID( GAID_FOR_UPDATE ); |
| 294 | + $latest = $this->page->getLatestRevID( Title::GAID_FOR_UPDATE ); |
295 | 295 | # Config may have changed to allow stable versions. |
296 | 296 | # Refresh tracking to account for any hidden reviewed versions... |
297 | 297 | $frev = FlaggedRevision::newFromStable( $this->page, FR_MASTER ); |
Index: trunk/extensions/FlaggedRevs/FlaggedRevision.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | } else { |
98 | 98 | $db = wfGetDB( DB_SLAVE ); |
99 | 99 | } |
100 | | - $pageId = $title->getArticleID( $flags & FR_FOR_UPDATE ? GAID_FOR_UPDATE : 0 ); |
| 100 | + $pageId = $title->getArticleID( $flags & FR_FOR_UPDATE ? Title::GAID_FOR_UPDATE : 0 ); |
101 | 101 | # Short-circuit query |
102 | 102 | if ( !$pageId ) { |
103 | 103 | return null; |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | } |
136 | 136 | $columns = self::selectFields(); |
137 | 137 | $options = array(); |
138 | | - $pageId = $title->getArticleID( $flags & FR_MASTER ? GAID_FOR_UPDATE : 0 ); |
| 138 | + $pageId = $title->getArticleID( $flags & FR_MASTER ? Title::GAID_FOR_UPDATE : 0 ); |
139 | 139 | if ( !$pageId ) { |
140 | 140 | return null; // short-circuit query |
141 | 141 | } |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | } |
183 | 183 | $columns = self::selectFields(); |
184 | 184 | $options = array(); |
185 | | - $pageId = $title->getArticleID( $flags & FR_FOR_UPDATE ? GAID_FOR_UPDATE : 0 ); |
| 185 | + $pageId = $title->getArticleID( $flags & FR_FOR_UPDATE ? Title::GAID_FOR_UPDATE : 0 ); |
186 | 186 | if ( !$pageId ) { |
187 | 187 | return null; // short-circuit query |
188 | 188 | } |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -1584,7 +1584,7 @@ |
1585 | 1585 | return true; |
1586 | 1586 | } |
1587 | 1587 | # Get latest revision Id (lag safe) |
1588 | | - $latest = $this->article->getTitle()->getLatestRevID( GAID_FOR_UPDATE ); |
| 1588 | + $latest = $this->article->getTitle()->getLatestRevID( Title::GAID_FOR_UPDATE ); |
1589 | 1589 | if ( $latest == $frev->getRevId() ) { |
1590 | 1590 | return true; // only for pages with pending edits |
1591 | 1591 | } |
— | — | @@ -1779,7 +1779,7 @@ |
1780 | 1780 | # We are undoing all edits *after* some rev ID (undoafter). |
1781 | 1781 | # If undoafter is not given, then it is the previous rev ID. |
1782 | 1782 | $revId = $wgRequest->getInt( 'undoafter', |
1783 | | - $article->getTitle()->getPreviousRevisionID( $latestId, GAID_FOR_UPDATE ) ); |
| 1783 | + $article->getTitle()->getPreviousRevisionID( $latestId, Title::GAID_FOR_UPDATE ) ); |
1784 | 1784 | # Undoing other edits... |
1785 | 1785 | } elseif ( $undo ) { |
1786 | 1786 | $revId = $latestId; // current rev is the base rev |
Index: trunk/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | static $stackDepth = 0; |
232 | 232 | $userVoted = false; |
233 | 233 | # Use page_latest if $revId not given |
234 | | - $revId = $revId ? $revId : $title->getLatestRevID( GAID_FOR_UPDATE ); |
| 234 | + $revId = $revId ? $revId : $title->getLatestRevID( Title::GAID_FOR_UPDATE ); |
235 | 235 | $rev = Revision::newFromTitle( $title, $revId ); |
236 | 236 | if( !$rev ) return false; // shouldn't happen; just in case |
237 | 237 | # Check if this revision is by this user... |
Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -375,10 +375,10 @@ |
376 | 376 | MoveJob::forceRedirects( true ); |
377 | 377 | |
378 | 378 | $newTpage = TranslatablePage::newFromTitle( $this->newTitle ); |
379 | | - $newTpage->addReadyTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
| 379 | + $newTpage->addReadyTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
380 | 380 | |
381 | 381 | if ( $newTpage->getMarkedTag() === $oldLatest ) { |
382 | | - $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
| 382 | + $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
383 | 383 | } |
384 | 384 | |
385 | 385 | MessageGroups::clearCache(); |