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 @@
30
30
}
31
31
32
32
function stylize_recursively( $dir ) {
33
+ $dir = trim( $dir, "\/" );
34
+
33
35
foreach ( glob( "$dir/*" ) as $dirOrFile ) {
34
36
if ( is_dir( $dirOrFile ) ) { // It's a directory, so call this function again.
35
37
stylize_recursively( $dirOrFile );
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r63718
Added suport for stylizing directories recursivly
jeroendedauw
00:44, 14 March 2010
Status & tagging log
22:07, 16 July 2010
MarkAHershberger
(
talk
|
contribs
)
changed the
status
of r68066
[
removed:
new
added:
ok]