rather than to "".
* (bug 1120) Updated the Czech translation
* A new magic word, {{SCRIPTPATH}}, returns $wgScriptPath
+* A new magic word, {{SERVERNAME}}, returns $wgServerName
* Special:Imagelist displays titles with " " instead of "_"
* Less gratuitous munging of content sample in delete summary
* badaccess/badaccesstext to supercede sysop*, developer* messages
define('MAG_CURRENTDOW', 39);
define('MAG_REVISIONID', 40);
define('MAG_SCRIPTPATH', 41);
+define('MAG_SERVERNAME', 42);
$wgVariableIDs = array(
MAG_CURRENTMONTH,
MAG_NUMBEROFARTICLES,
MAG_SITENAME,
MAG_SERVER,
+ MAG_SERVERNAME,
MAG_SCRIPTPATH,
MAG_PAGENAME,
MAG_PAGENAMEE,
* @access private
*/
function getVariableValue( $index ) {
- global $wgContLang, $wgSitename, $wgServer, $wgArticle, $wgScriptPath;
+ global $wgContLang, $wgSitename, $wgServer, $wgServerName, $wgArticle, $wgScriptPath;
/**
* Some of these require message or data lookups and can be
return $wgSitename;
case MAG_SERVER:
return $wgServer;
+ case MAG_SERVERNAME:
+ return $wgServerName;
case MAG_SCRIPTPATH:
return $wgScriptPath;
default:
MAG_LOCALURL => array( 0, 'LOCALURL:' ),
MAG_LOCALURLE => array( 0, 'LOCALURLE:' ),
MAG_SERVER => array( 0, 'SERVER' ),
+ MAG_SERVERNAME => array( 0, 'SERVERNAME' ),
MAG_SCRIPTPATH => array( 0, 'SCRIPTPATH' ),
MAG_GRAMMAR => array( 0, 'GRAMMAR:' ),
MAG_NOTITLECONVERT => array( 0, '__NOTITLECONVERT__', '__NOTC__'),