Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6935
articlepathwithlanguage.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:10 PM
2014-11-21 23:10:44 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
articlepathwithlanguage.patch
View Options
Index: includes/MagicWord.php
===================================================================
--- includes/MagicWord.php (revision 67645)
+++ includes/MagicWord.php (working copy)
@@ -60,6 +60,7 @@
'numberofarticles',
'numberoffiles',
'numberofedits',
+ 'articlepath',
'sitename',
'server',
'servername',
Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 67645)
+++ includes/parser/Parser.php (working copy)
@@ -2377,7 +2377,7 @@
*/
function getVariableValue( $index, $frame=false ) {
global $wgContLang, $wgSitename, $wgServer, $wgServerName;
- global $wgScriptPath, $wgStylePath;
+ global $wgArticlePath, $wgScriptPath, $wgStylePath;
/**
* Some of these require message or data lookups and can be
@@ -2651,6 +2651,8 @@
case 'currentversion':
$value = SpecialVersion::getVersion();
break;
+ case 'articlepath':
+ return $wgArticlePath;
case 'sitename':
return $wgSitename;
case 'server':
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 67645)
+++ languages/messages/MessagesEn.php (working copy)
@@ -295,6 +295,7 @@
'nse' => array( 0, 'NSE:' ),
'localurl' => array( 0, 'LOCALURL:' ),
'localurle' => array( 0, 'LOCALURLE:' ),
+ 'articlepath' => array( 0, 'ARTICLEPATH' ),
'server' => array( 0, 'SERVER' ),
'servername' => array( 0, 'SERVERNAME' ),
'scriptpath' => array( 0, 'SCRIPTPATH' ),
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6472
Default Alt Text
articlepathwithlanguage.patch (1 KB)
Attached To
Mode
T25848: Add {{ARTICLEPATH}} Magic Word
Attached
Detach File
Event Timeline
Log In to Comment