User "^demon" posted a comment on MediaWiki.r90072.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90072#c18049
Commit summary:

r90068#c18046 no need for global to grab maintenance directory

Comment:

Entry points for extension maintenance scripts should be something like this 
(from CodeReview):
<pre>
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
        $IP = dirname( __FILE__ ) . '/../..';
}
require( "$IP/maintenance/Maintenance.php" );

class SvnImport extends Maintenance {
</pre>
You would use /../../.., but the point is the same :)

_______________________________________________
MediaWiki-CodeReview mailing list
mediawiki-coderev...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to