Last modified: 2006-04-27 23:21:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7738, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5738 - proposal : New magic word {{USERNAME}}
proposal : New magic word {{USERNAME}}
Status: RESOLVED DUPLICATE of bug 4196
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.7.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-27 23:15 UTC by STyx
Modified: 2006-04-27 23:21 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description STyx 2006-04-27 23:15:27 UTC
This magic word is so useful that I really don't understand why this isn't
allready implemented. 
For example : 
*[http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Monobook]
*[http://en.wikipedia.org/wiki/Template:Delete] improvment
*automatic signature in some templates
Comment 1 STyx 2006-04-27 23:18:31 UTC
changes:
$ diff includes/Parser.php includes/Parser.php~
76c76
<  *    objects:   $wgLang, $wgContLang, $wgUser
---
>  *    objects:   $wgLang, $wgContLang
78c78
<  * NOT $wgArticle or $wgTitle. Keep them away!
---
>  * NOT $wgArticle, $wgUser or $wgTitle. Keep them away!
2063c2063
<               global $wgContLang, $wgSitename, $wgServer, $wgServerName,
$wgScriptPath, $wgUser;
---
>               global $wgContLang, $wgSitename, $wgServer, $wgServerName,
$wgScriptPath;
2102,2105d2101
<                       case MAG_USERNAME:
<                               return $wgUser->getName();
<                       case MAG_USERNAMEE:
<                               return wfUrlencode( $wgUser->getName() );

$ diff includes/MagicWord.php includes/MagicWord.php~
75,76d74
<       'MAG_USERNAME',
<       'MAG_USERNAMEE',
110,112c108
<       MAG_SUBPAGENAMEE,
<       MAG_USERNAME,
<       MAG_USERNAMEE
---
>       MAG_SUBPAGENAMEE


$ diff languages/Language.php languages/Language.php~
232,233c232,233
<       MAG_SUBPAGENAME          => array( 0,    'SUBPAGENAME'            ),
<       MAG_SUBPAGENAMEE         => array( 0,    'SUBPAGENAMEE'           ),
---
>       MAG_SUBPAGENAME          => array( 0,    'SUBPAGENAME'                    ),
>       MAG_SUBPAGENAMEE                 => array( 0,    'SUBPAGENAMEE'        
          ),
268,269d267
<       MAG_USERNAME             => array( 1,    'USERNAME'               ),
<       MAG_USERNAMEE            => array( 1,    'USERNAMEE'              ),

Comment 2 Rob Church 2006-04-27 23:21:03 UTC

*** This bug has been marked as a duplicate of 4196 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links