Index: trunk/extensions/VipsScaler/VipsTest.php |
— | — | @@ -1,7 +1,7 @@ |
2 | | -<?php |
| 2 | + <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Extension registration file for Special:VipsTest. The VipsScaler extension |
| 5 | + * Extension registration file for Special:VipsTest. The VipsScaler extension |
6 | 6 | * must be enabled. |
7 | 7 | */ |
8 | 8 | |
— | — | @@ -18,6 +18,8 @@ |
19 | 19 | */ |
20 | 20 | $wgVipsTestExpiry = 3600; |
21 | 21 | |
| 22 | + $dir = dirname( __FILE__ ); |
| 23 | + |
22 | 24 | /** Registration */ |
23 | 25 | $wgAutoloadClasses['SpecialVipsTest'] = "$dir/SpecialVipsTest.php"; |
24 | 26 | $wgExtensionAliasesFiles['VipsTest'] = "$dir/VipsScaler.alias.php"; |
— | — | @@ -25,7 +27,7 @@ |
26 | 28 | $wgGroupPermissions['*']['vipsscaler-test'] = true; |
27 | 29 | $wgSpecialPages['VipsTest'] = 'SpecialVipsTest'; |
28 | 30 | |
29 | | -/** |
| 31 | +/** |
30 | 32 | * Disable VipsScaler for ordinary image scaling so that the test has something |
31 | 33 | * to compare against. |
32 | 34 | */ |