Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2139,20 +2139,27 @@ |
2140 | 2140 | } |
2141 | 2141 | } |
2142 | 2142 | |
2143 | | - # LOCALURL and LOCALURLE |
| 2143 | + # LOCALURL and FULLURL |
2144 | 2144 | if ( !$found ) { |
2145 | | - $mwLocal = MagicWord::get( MAG_LOCALURL ); |
2146 | | - $mwLocalE = MagicWord::get( MAG_LOCALURLE ); |
| 2145 | + $mwLocal =& MagicWord::get( MAG_LOCALURL ); |
| 2146 | + $mwLocalE =& MagicWord::get( MAG_LOCALURLE ); |
| 2147 | + $mwFull =& MagicWord::get( MAG_FULLURL ); |
| 2148 | + $mwFullE =& MagicWord::get( MAG_FULLURLE ); |
| 2149 | + |
2147 | 2150 | |
2148 | 2151 | if ( $mwLocal->matchStartAndRemove( $part1 ) ) { |
2149 | 2152 | $func = 'getLocalURL'; |
2150 | 2153 | } elseif ( $mwLocalE->matchStartAndRemove( $part1 ) ) { |
2151 | 2154 | $func = 'escapeLocalURL'; |
| 2155 | + } elseif ( $mwFull->matchStartAndRemove( $part1 ) ) { |
| 2156 | + $func = 'getFullURL'; |
| 2157 | + } elseif ( $mwFullE->matchStartAndRemove( $part1 ) ) { |
| 2158 | + $func = 'escapeFullURL'; |
2152 | 2159 | } else { |
2153 | | - $func = ''; |
| 2160 | + $func = false; |
2154 | 2161 | } |
2155 | 2162 | |
2156 | | - if ( $func !== '' ) { |
| 2163 | + if ( $func !== false ) { |
2157 | 2164 | $title = Title::newFromText( $part1 ); |
2158 | 2165 | if ( !is_null( $title ) ) { |
2159 | 2166 | if ( $argc > 0 ) { |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -57,6 +57,8 @@ |
58 | 58 | define('MAG_NUMBEROFFILES', 43); |
59 | 59 | define('MAG_IMG_MANUALTHUMB', 44); |
60 | 60 | define('MAG_PLURAL', 45); |
| 61 | +define('MAG_FULLURL', 46); |
| 62 | +define('MAG_FULLURLE', 47); |
61 | 63 | |
62 | 64 | $wgVariableIDs = array( |
63 | 65 | MAG_CURRENTMONTH, |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -234,6 +234,8 @@ |
235 | 235 | MAG_CURRENTDOW => array( 1, 'CURRENTDOW' ), |
236 | 236 | MAG_REVISIONID => array( 1, 'REVISIONID' ), |
237 | 237 | MAG_PLURAL => array( 0, 'PLURAL:' ), |
| 238 | + MAG_FULLURL => array( 0, 'FULLURL:' ), |
| 239 | + MAG_FULLURLE => array( 0, 'FULLURLE:' ), |
238 | 240 | ); |
239 | 241 | |
240 | 242 | #------------------------------------------------------------------- |