r89949 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r89948
|
r89949
|
r89950
>
Date:
08:17, 13 June 2011
Author:
nikerabbit
Status:
ok
Tags:
Comment:
Don't show "this page is translated" on non-existing pages
Modified paths:
/trunk/extensions/Translate/tag/PageTranslationHooks.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
—
—
@@ -485,6 +485,10 @@
486
486
protected static function translationPageHeader( Title $title ) {
487
487
global $wgOut;
488
488
489
+ if ( !$title->exists() ) {
490
+ return;
491
+ }
492
+
489
493
// Check if applicable
490
494
$page = TranslatablePage::isTranslationPage( $title );
491
495
if ( $page === false ) {
Status & tagging log
23:34, 21 June 2011
Siebrand
(
talk
|
contribs
)
changed the
status
of r89949
[
removed:
deferred
added:
ok]
13:33, 15 June 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r89949
[
removed:
new
added:
deferred]