From: Raimond Spekking Date: Thu, 13 Mar 2008 10:05:11 +0000 (+0000) Subject: * Add a CSS id to the 2nd table X-Git-Tag: 1.31.0-rc.0~49145 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=f03599516213bfc7c1962b631834af9cb608b249;p=lhc%2Fweb%2Fwiklou.git * Add a CSS id to the 2nd table * Prettify input form for RTL wikis a bit --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 03e4c8ce6a..bd1606362f 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -208,8 +208,13 @@ class ProtectionForm { return $ok; } + /** + * Build the input form + * + * @return $out string HTML form + */ function buildForm() { - global $wgUser; + global $wgUser, $wgContLang; $out = ''; if( !$this->disabled ) { @@ -243,7 +248,7 @@ class ProtectionForm { $out .= Xml::closeElement( 'tbody' ) . Xml::closeElement( 'table' ) . - Xml::openElement( 'table' ) . + Xml::openElement( 'table', array( 'id' => 'mw-protect-table2' ) ) . Xml::openElement( 'tbody' ); global $wgEnableCascadingProtection; @@ -257,8 +262,9 @@ class ProtectionForm { } $attribs = array( 'id' => 'expires' ) + $this->disabledAttrib; - $out .= ' - ' . + $align = $wgContLang->isRtl() ? 'left' : 'right'; + $out .= " + " . Xml::label( wfMsgExt( 'protectexpiry', array( 'parseinline' ) ), 'expires' ) . ' ' . @@ -269,7 +275,7 @@ class ProtectionForm { if( !$this->disabled ) { $id = 'mwProtect-reason'; $out .= " - " . + " . Xml::label( wfMsg( 'protectcomment' ), $id ) . ' ' .