Index: trunk/extensions/SmoothGallery/SmoothGallery.php |
— | — | @@ -50,6 +50,7 @@ |
51 | 51 | $dir = dirname(__FILE__) . '/'; |
52 | 52 | $wgExtensionMessagesFiles['SmoothGallery'] = $dir . 'SmoothGallery.i18n.php'; |
53 | 53 | $wgAutoloadClasses['SmoothGallery'] = $dir . 'SmoothGalleryClass.php'; |
| 54 | +$wgAutoloadClasses['SmoothGalleryParser'] = $dir . 'SmoothGalleryParser.php'; |
54 | 55 | |
55 | 56 | //sane defaults. always initialize to avoid register_globals vulnerabilities |
56 | 57 | $wgSmoothGalleryDelimiter = "\n"; |
— | — | @@ -105,8 +106,6 @@ |
106 | 107 | } |
107 | 108 | |
108 | 109 | function initSmoothGallery( $input, $argv, &$parser, $calledAsSet=false ) { |
109 | | - require_once( 'SmoothGalleryParser.php' ); |
110 | | - |
111 | 110 | $sgParser = new SmoothGalleryParser( $input, $argv, $parser, $calledAsSet ); |
112 | 111 | $sgGallery = new SmoothGallery(); |
113 | 112 | |