Index: trunk/phase3/includes/resourceloader/ResourceLoaderContext.php |
— | — | @@ -97,6 +97,13 @@ |
98 | 98 | } |
99 | 99 | return $retval; |
100 | 100 | } |
| 101 | + |
| 102 | + /** |
| 103 | + * Return a dummy ResourceLoaderContext object suitable for passing into things that don't "really" need a context |
| 104 | + */ |
| 105 | + public static function newDummyContext() { |
| 106 | + return new self( null, new FauxRequest( array() ) ); |
| 107 | + } |
101 | 108 | |
102 | 109 | /** |
103 | 110 | * @return ResourceLoader |