X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=1443d1ca69d1a315b1aeae9d28958d30c4ff0be2;hb=dae916558f37103317e1bd31b9ee7d3ca6299826;hp=1219da51d1f8626f23f6930c40a81998117b2b5d;hpb=2b1ee195a07a67c00d11301a563b13d53f3d04af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 1219da51d1..1443d1ca69 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -157,7 +157,7 @@ class ProtectionForm { $value = $this->mExpirySelection[$action]; } if ( wfIsInfinity( $value ) ) { - $time = wfGetDB( DB_SLAVE )->getInfinity(); + $time = 'infinity'; } else { $unix = strtotime( $value ); @@ -541,9 +541,8 @@ class ProtectionForm { $out .= Xml::closeElement( 'fieldset' ); if ( $user->isAllowed( 'editinterface' ) ) { - $title = Title::makeTitle( NS_MEDIAWIKI, 'Protect-dropdown' ); - $link = Linker::link( - $title, + $link = Linker::linkKnown( + $context->msg( 'protect-dropdown' )->inContentLanguage()->getTitle(), $context->msg( 'protect-edit-reasonlist' )->escaped(), array(), array( 'action' => 'edit' )