r75944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75943‎ | r75944 | r75945 >
Date:18:08, 3 November 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added addCSS() function
Modified paths:
  • /trunk/extensions/ApprovedRevs/ApprovedRevs_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApprovedRevs/ApprovedRevs_body.php
@@ -192,4 +192,16 @@
193193
194194 wfRunHooks( 'ApprovedRevsRevisionUnapproved', array( $parser, $title ) );
195195 }
 196+
 197+ public static function addCSS() {
 198+ global $wgOut, $egApprovedRevsScriptPath;
 199+ $link = array(
 200+ 'rel' => 'stylesheet',
 201+ 'type' => 'text/css',
 202+ 'media' => "screen",
 203+ 'href' => "$egApprovedRevsScriptPath/ApprovedRevs.css"
 204+ );
 205+ $wgOut->addLink( $link );
 206+ }
 207+
196208 }

Status & tagging log