Revision: 43559
Author: ialex
Date: 2008-11-15 16:21:57 +0000 (Sat, 15 Nov 2008)
Log Message:
-----------
Only show the link to mw.org on setting's name because when you have a link in
the description ($wgCountCategorizedImagesAsUsed, $wgSortSpecialPages, ...)
then the page becomes invalid for the W3C validator
Modified Paths:
--------------
trunk/extensions/Configure/Configure.page.php
Modified: trunk/extensions/Configure/Configure.page.php
===================================================================
--- trunk/extensions/Configure/Configure.page.php 2008-11-15 12:30:29 UTC
(rev 43558)
+++ trunk/extensions/Configure/Configure.page.php 2008-11-15 16:21:57 UTC
(rev 43559)
@@ -1024,18 +1024,18 @@
$attribs['valign'] = 'top';
$msgVal = wfMsgExt( $msg, array( 'parseinline' ) );
$rawVal = Xml::element( 'tt', null, "\$$conf" );
- if ( wfEmptyMsg( $msg, $msgVal ) )
- $msgVal = $rawVal;
- else
- $msgVal = "$msgVal ($rawVal)";
if ( $showLink ) {
$url = 'http://www.mediawiki.org/wiki/Manual:$' . $conf;
- $link = Xml::tags( 'a', array( 'href' => $url, 'class'
=> 'configure-doc' ), $msgVal );
+ $link = Xml::tags( 'a', array( 'href' => $url, 'class'
=> 'configure-doc' ), $rawVal );
} else {
- $link = $msgVal;
+ $link = $rawVal;
}
+ if ( wfEmptyMsg( $msg, $msgVal ) )
+ $msgVal = $link;
+ else
+ $msgVal = "$msgVal ($link)";
$attribs['class'] = 'configure-left-column';
- $td1 = Xml::openElement( 'td', $attribs ) . $link . '</td>';
+ $td1 = Xml::openElement( 'td', $attribs ) . $msgVal . '</td>';
$attribs['class'] = 'configure-right-column';
if ( $this->isSettingAvailable( $conf ) )
$td2 = Xml::openElement( 'td', $attribs ) .
$this->buildInput( $conf, $params ) . '</td>';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs