Index: trunk/extensions/SemanticGallery/SemanticGallery.php |
— | — | @@ -7,19 +7,19 @@ |
8 | 8 | |
9 | 9 | function semanticGallery_Setup() |
10 | 10 | { |
11 | | - global $wgParser, $wgHooks; |
| 11 | + global $wgExtensionCredits, $wgAutoloadClasses; |
12 | 12 | |
13 | 13 | // credits |
14 | 14 | $wgExtensionCredits['parserhook'][] = array( |
15 | 15 | 'name' => 'Semantic Gallery', |
16 | | - 'version' => '0.1.1', |
| 16 | + 'version' => '0.3.1', |
17 | 17 | 'author' => array( 'Rowan Rodrik van der Molen' ), |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Gallery', |
19 | 19 | 'description' => 'Adds a gallery output format to SMW inline queries', |
20 | 20 | 'descriptionmsg' => 'semanticgallery-desc', |
21 | 21 | ); |
22 | 22 | |
23 | | - require_once('SG_ResultPrinter.php'); |
| 23 | + $wgAutoloadClasses['SemanticGallery_ResultPrinter'] = dirname(__FILE__).'/SG_ResultPrinter.php'; |
24 | 24 | |
25 | 25 | // global variable introduced in SMW 1.2.2 |
26 | 26 | global $smwgResultFormats; |