On Sat, Apr 24, 2004 at 08:19:07PM +0000, Brion Vibber wrote:
Update of /cvsroot/wikipedia/phase3/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9657/includes
Modified Files: MagicWord.php Parser.php Log Message: Add {{NAMESPACE}} and {{PAGENAME}} magic words. (dori's patch)
Index: Parser.php
return date("j"); case MAG_CURRENTDAYNAME:
case MAG_PAGENAME:
return $this->mTitle->getText();
case MAG_NAMESPACE:
return Namespace::getCanonicalName($this->mTitle->getNamespace()); return $wgLang->getWeekdayName( date("w")+1 ); case MAG_CURRENTYEAR:
Index: MagicWord.php
define("MAG_LOCALURLE", 27); define("MAG_SERVER", 28);
- define("MAG_PAGENAME", 29);
- define("MAG_NAMESPACE", 30); define("MAG_IMG_FRAMED", 29);
Please be careful when applying patches. Dori's diff was generated from another version of the file, applying it to a newer version caused some trouble.
Regards,
jeluf
wikitech-l@lists.wikimedia.org