Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -278,6 +278,7 @@ |
279 | 279 | |
280 | 280 | class FlaggedRevs { |
281 | 281 | public static $dimensions = array(); |
| 282 | + public static $styleLoaded = false; |
282 | 283 | |
283 | 284 | public static function load() { |
284 | 285 | global $wgFlaggedRevTags, $wgFlaggedRevValues; |
— | — | @@ -861,6 +862,9 @@ |
862 | 863 | */ |
863 | 864 | public static function InjectStyle( $out, $parserOut ) { |
864 | 865 | global $wgJsMimeType; |
| 866 | + |
| 867 | + if( self::$styleLoaded ) |
| 868 | + return true; |
865 | 869 | # UI CSS |
866 | 870 | $out->addLink( array( |
867 | 871 | 'rel' => 'stylesheet', |
— | — | @@ -871,6 +875,8 @@ |
872 | 876 | # UI JS |
873 | 877 | $out->addScript( "<script type=\"{$wgJsMimeType}\" src=\"" . FLAGGED_JS . "\"></script>\n" ); |
874 | 878 | |
| 879 | + self::$styleLoaded = true; |
| 880 | + |
875 | 881 | return true; |
876 | 882 | } |
877 | 883 | |