From: <ro...@us...> - 2011-05-30 15:09:44
|
Revision: 5 http://wm-incubator.svn.sourceforge.net/wm-incubator/?rev=5&view=rev Author: robin-p Date: 2011-05-30 15:09:38 +0000 (Mon, 30 May 2011) Log Message: ----------- Revert revision 4: this does not work (I tried it before) Revision Links: -------------- http://wm-incubator.svn.sourceforge.net/wm-incubator/?rev=4&view=rev Modified Paths: -------------- trunk/InfoPage.php Modified: trunk/InfoPage.php =================================================================== --- trunk/InfoPage.php 2011-05-30 04:47:05 UTC (rev 4) +++ trunk/InfoPage.php 2011-05-30 15:09:38 UTC (rev 5) @@ -1,5 +1,4 @@ <?php -$wmiExtPath = dirname( __FILE__ ); // Initialise location path of extension class InfoPage { public static function setup( &$parser ) { $parser->setFunctionHook( 'infopage', 'InfoPage::render' ); @@ -14,9 +13,9 @@ public static function render( &$parser, $status='default', $meta=false, $mainpage='', $created='', $bug='', $wparticle='', $since='' ) { global $wgTitle, $wgOut, $wgScriptPath; - // ### NEED TO FIX THIS: DO NOT HARDCODE EXTENSION PATH!! ### <--- Fixed above + // ### NEED TO FIX THIS: DO NOT HARDCODE EXTENSION PATH!! ### // Only loads when editing pages??? - $wgOut->addExtensionStyle( $wmiExtPath.'/InfoPage.css' ); + $wgOut->addExtensionStyle( $wgScriptPath.'/extensions/WikimediaIncubator-dev/InfoPage.css' ); if(!preg_match('/W[bnpqt]\/[a-z][a-z][a-z]?/', $wgTitle)) { return '<div class="error">ERROR (#infopage): Page title is not in Wx/xx(x) format.</div>'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |