r101809 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101808‎ | r101809 | r101810 >
Date:14:32, 3 November 2011
Author:hashar
Status:ok
Tags:
Comment:
add special pages aliases and autoloading
Modified paths:
  • /trunk/extensions/VipsScaler/VipsScaler.alias.php (added) (history)
  • /trunk/extensions/VipsScaler/VipsScaler.php (modified) (history)

Diff [purge]

Index: trunk/extensions/VipsScaler/VipsScaler.php
@@ -30,7 +30,14 @@
3131
3232 $dir = dirname( __FILE__ );
3333
34 -$wgAutoloadClasses['VipsScaler'] = "$dir/VipsScaler_body.php";
 34+$wgAutoloadClasses['VipsScaler'] = "$dir/VipsScaler_body.php";
 35+$wgAutoloadClasses['VipsCommand'] = "$dir/VipsScaler_body.php";
 36+$wgAutoloadClasses['VipsConvolution'] = "$dir/VipsScaler_body.php";
 37+$wgAutoloadClasses['SpecialVipsTest'] = "$dir/SpecialVipsTest.php";
 38+
 39+
 40+$wgSpecialPages['VipsTest'] = 'SpecialVipsTest';
 41+$wgExtensionAliasesFiles['VipsTest'] = "$dir/VipsScaler.alias.php";
3542 $wgExtensionMessagesFiles['VipsScaler'] = "$dir/VipsScaler.i18n.php";
3643
3744 $wgHooks['BitmapHandlerTransform'][] = 'VipsScaler::onTransform';
Index: trunk/extensions/VipsScaler/VipsScaler.alias.php
@@ -0,0 +1,20 @@
 2+<?php
 3+/**
 4+ * Aliases for extension VipsScaler
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English (English) */
 13+$specialPageAliases['en'] = array(
 14+ 'VipsTest' => array( 'VipsTest' )
 15+);
 16+
 17+
 18+/**
 19+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 20+ */
 21+$aliases =& $specialPageAliases;
Property changes on: trunk/extensions/VipsScaler/VipsScaler.alias.php
___________________________________________________________________
Added: svn:eol-style
122 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r101873Register special page alias file (r101809) for translatewiki.netraymond20:25, 3 November 2011

Status & tagging log