mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 10:23:36 +02:00
Merge branch 'MaSteve-master'
This commit is contained in:
@@ -198,21 +198,14 @@ class DirectoryLister {
|
||||
);
|
||||
|
||||
// Generate breadcrumbs
|
||||
$dirPath = null;
|
||||
|
||||
foreach ($dirArray as $key => $dir) {
|
||||
|
||||
if ($dir != '.') {
|
||||
|
||||
$dirPath = null;
|
||||
|
||||
// Build the directory path
|
||||
for ($i = 0; $i <= $key; $i++) {
|
||||
$dirPath = $dirPath . $dirArray[$i] . '/';
|
||||
}
|
||||
|
||||
// Remove trailing slash
|
||||
if(substr($dirPath, -1) == '/') {
|
||||
$dirPath = substr($dirPath, 0, -1);
|
||||
}
|
||||
$dirPath = null ? $dir : $dirPath . '/' . $dir;
|
||||
|
||||
// Combine the base path and dir path
|
||||
$link = $this->_appURL . '?dir=' . rawurlencode($dirPath);
|
||||
|
Reference in New Issue
Block a user