projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
536e5f3
)
MTrackWeb/File.php
author
Alan Knowles
<alan@akbkhome.com>
Sat, 19 Mar 2011 10:21:49 +0000
(18:21 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 19 Mar 2011 10:21:49 +0000
(18:21 +0800)
MTrackWeb/File.php
patch
|
blob
|
history
diff --git
a/MTrackWeb/File.php
b/MTrackWeb/File.php
index
98d3837
..
6a2d992
100644
(file)
--- a/
MTrackWeb/File.php
+++ b/
MTrackWeb/File.php
@@
-92,8
+92,7
@@
class MTrackWeb_File extends MTrackWeb
$this->basename = basename($this->filename);
$location = '';
$crumbs = dirname($this->filename) == '.' ? array() : explode('/', dirname($this->filename));
- array_unshift($crumbs, ''); // add empty at front..
-
+
@@
-103,7
+102,7
@@
class MTrackWeb_File extends MTrackWeb
continue;
}
$c = new StdClass;
- $c->name =
strlen($path) ? $path : '[root]';
+ $c->name =
$path
$location .= strlen($location) ? '/' : '';
$location .= strlen($path) ? urlencode($path) : '';
$c->location = $location;