r50323 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50322‎ | r50323 | r50324 >
Date:20:29, 7 May 2009
Author:laner
Status:deferred
Tags:
Comment:
Added autoload class for SmoothGalleryParser, and removed the require
Modified paths:
  • /trunk/extensions/SmoothGallery/SmoothGallery.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SmoothGallery/SmoothGallery.php
@@ -50,6 +50,7 @@
5151 $dir = dirname(__FILE__) . '/';
5252 $wgExtensionMessagesFiles['SmoothGallery'] = $dir . 'SmoothGallery.i18n.php';
5353 $wgAutoloadClasses['SmoothGallery'] = $dir . 'SmoothGalleryClass.php';
 54+$wgAutoloadClasses['SmoothGalleryParser'] = $dir . 'SmoothGalleryParser.php';
5455
5556 //sane defaults. always initialize to avoid register_globals vulnerabilities
5657 $wgSmoothGalleryDelimiter = "\n";
@@ -105,8 +106,6 @@
106107 }
107108
108109 function initSmoothGallery( $input, $argv, &$parser, $calledAsSet=false ) {
109 - require_once( 'SmoothGalleryParser.php' );
110 -
111110 $sgParser = new SmoothGalleryParser( $input, $argv, $parser, $calledAsSet );
112111 $sgGallery = new SmoothGallery();
113112

Status & tagging log