r68066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68065‎ | r68066 | r68067 >
Date:12:33, 15 June 2010
Author:reedy
Status:ok
Tags:
Comment:
Trim trailing / or \ from path to prettify output, followup r63718

So we don't get "Stylizing file mediawiki/trunk/extensions//ABC/ABC.i18n.php Stylizing file" in recursive output
Modified paths:
  • /trunk/tools/code-utils/stylize.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/stylize.php
@@ -29,6 +29,8 @@
3030 }
3131
3232 function stylize_recursively( $dir ) {
 33+ $dir = trim( $dir, "\/" );
 34+
3335 foreach ( glob( "$dir/*" ) as $dirOrFile ) {
3436 if ( is_dir( $dirOrFile ) ) { // It's a directory, so call this function again.
3537 stylize_recursively( $dirOrFile );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63718Added suport for stylizing directories recursivlyjeroendedauw00:44, 14 March 2010

Status & tagging log