dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e39dd45
)
Suppress hidden files from skin list; some backup and magic-filesystem-stuff systems...
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 25 Nov 2004 22:42:33 +0000
(22:42 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Thu, 25 Nov 2004 22:42:33 +0000
(22:42 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
2d254a6
..
118f90c
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-23,9
+23,9
@@
$skinDir = dir($IP.'/skins');
# while code from www.php.net
while (false !== ($file = $skinDir->read())) {
- if(preg_match('/^(
.*)
.php$/',$file, $matches)) {
+ if(preg_match('/^(
[^.].*)\
.php$/',$file, $matches)) {
$aSkin = $matches[1];
- $wgValidSkinNames[strtolower($aSkin)] = $aSkin;
+
$wgValidSkinNames[strtolower($aSkin)] = $aSkin;
}
}
$skinDir->close();