Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -8,6 +8,11 @@ |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | */ |
11 | 11 | |
| 12 | +if ( !defined( GAID_FOR_UPDATE ) ) { |
| 13 | + /* Backwards-compatible define for 1.17+ (see r75379) */ |
| 14 | + define( 'GAID_FOR_UPDATE', Title::GAID_FOR_UPDATE ); |
| 15 | +} |
| 16 | + |
12 | 17 | /** |
13 | 18 | * Overrides Special:Movepage to to allow renaming a page translation page and |
14 | 19 | * all related translations and derivative pages. |
— | — | @@ -370,10 +375,10 @@ |
371 | 376 | MoveJob::forceRedirects( true ); |
372 | 377 | |
373 | 378 | $newTpage = TranslatablePage::newFromTitle( $this->newTitle ); |
374 | | - $newTpage->addReadyTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
| 379 | + $newTpage->addReadyTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
375 | 380 | |
376 | 381 | if ( $newTpage->getMarkedTag() === $oldLatest ) { |
377 | | - $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( Title::GAID_FOR_UPDATE ) ); |
| 382 | + $newTpage->addMarkedTag( $this->newTitle->getLatestRevId( GAID_FOR_UPDATE ) ); |
378 | 383 | } |
379 | 384 | |
380 | 385 | MessageGroups::clearCache(); |