projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9278c25
)
Fixed minor issue in welcome script
author
Frederic Massart
<fred@moodle.com>
Wed, 5 Dec 2012 07:47:04 +0000
(15:47 +0800)
committer
Frederic Massart
<fred@moodle.com>
Wed, 5 Dec 2012 07:47:04 +0000
(15:47 +0800)
extra/welcome.php
patch
|
blob
|
history
diff --git
a/extra/welcome.php
b/extra/welcome.php
index
8962852
..
d6cd3e7
100644
(file)
--- a/
extra/welcome.php
+++ b/
extra/welcome.php
@@
-23,10
+23,10
@@
echo "<h2>Moodle Development Kit</h1>";
echo "<ul>";
-$path =
dirname(__FILE__
);
+$path =
getcwd(
);
$dirs = scandir($path);
foreach ($dirs as $dir) {
- if (
!is_dir($path
. $dir)) {
+ if (
$dir == '.' || $dir == '..' || !is_dir($path . '/'
. $dir)) {
continue;
}
print "<li><a href='$dir'>$dir</a></li>";