* (bug 2277) Added Friulian language file
* (bug 2457) The "Special page" href now links to the current special page
rather than to "".
+* A new magic word, {{PATH}}, returns $wgScriptPath
* 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_CURRENTWEEK', 38);
define('MAG_CURRENTDOW', 39);
define('MAG_REVISIONID', 40);
+define('MAG_PATH', 41);
$wgVariableIDs = array(
MAG_CURRENTMONTH,
MAG_NUMBEROFARTICLES,
MAG_SITENAME,
MAG_SERVER,
+ MAG_PATH,
MAG_PAGENAME,
MAG_PAGENAMEE,
MAG_NAMESPACE,
* @access private
*/
function getVariableValue( $index ) {
- global $wgContLang, $wgSitename, $wgServer, $wgArticle;
+ global $wgContLang, $wgSitename, $wgServer, $wgArticle, $wgScriptPath;
/**
* Some of these require message or data lookups and can be
return $wgSitename;
case MAG_SERVER:
return $wgServer;
+ case MAG_PATH:
+ return $wgScriptPath;
default:
return NULL;
}
MAG_LOCALURL => array( 0, 'LOCALURL:' ),
MAG_LOCALURLE => array( 0, 'LOCALURLE:' ),
MAG_SERVER => array( 0, 'SERVER' ),
+ MAG_PATH => array( 0, 'PATH' ),
MAG_GRAMMAR => array( 0, 'GRAMMAR:' ),
MAG_NOTITLECONVERT => array( 0, '__NOTITLECONVERT__', '__NOTC__'),
MAG_NOCONTENTCONVERT => array( 0, '__NOCONTENTCONVERT__', '__NOCC__'),