Skip to content
Snippets Groups Projects
Commit a533b440 authored by Hakan Sandell's avatar Hakan Sandell
Browse files

Fixes FS#2323 Symbolic link to template doesn't work

patch by Chris Green
parent 32261ab5
No related branches found
No related tags found
No related merge requests found
......@@ -774,8 +774,8 @@ if (!class_exists('setting_dirchoice')) {
if ($entry == '.' || $entry == '..') continue;
if ($this->_pattern && !preg_match($this->_pattern,$entry)) continue;
$file = (is_link($this->_dir.$entry)) ? readlink($this->_dir.$entry) : $entry;
if (is_dir($this->_dir.$file)) $list[] = $entry;
$file = (is_link($this->_dir.$entry)) ? readlink($this->_dir.$entry) : $this->_dir.$entry;
if (is_dir($file)) $list[] = $entry;
}
closedir($dh);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment