r104606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104605‎ | r104606 | r104607 >
Date:22:44, 29 November 2011
Author:reedy
Status:resolved
Tags:
Comment:
Having $dir set before you use it helps
Modified paths:
  • /trunk/extensions/VipsScaler/VipsTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/VipsScaler/VipsTest.php
@@ -1,7 +1,7 @@
2 -<?php
 2+ <?php
33
44 /**
5 - * Extension registration file for Special:VipsTest. The VipsScaler extension
 5+ * Extension registration file for Special:VipsTest. The VipsScaler extension
66 * must be enabled.
77 */
88
@@ -18,6 +18,8 @@
1919 */
2020 $wgVipsTestExpiry = 3600;
2121
 22+ $dir = dirname( __FILE__ );
 23+
2224 /** Registration */
2325 $wgAutoloadClasses['SpecialVipsTest'] = "$dir/SpecialVipsTest.php";
2426 $wgExtensionAliasesFiles['VipsTest'] = "$dir/VipsScaler.alias.php";
@@ -25,7 +27,7 @@
2628 $wgGroupPermissions['*']['vipsscaler-test'] = true;
2729 $wgSpecialPages['VipsTest'] = 'SpecialVipsTest';
2830
29 -/**
 31+/**
3032 * Disable VipsScaler for ordinary image scaling so that the test has something
3133 * to compare against.
3234 */

Follow-up revisions

RevisionCommit summaryAuthorDate
r104632Fix for r104606: headers sent due to whitespace before <?phptstarling00:32, 30 November 2011

Status & tagging log