-
2011-09-09
chrisisbd
If you put a symbolic link in <dokuwiki>/lib/tpl then the template doesn't work and doesn't appear in the drop down selection list in the admin page Template selection.
The error causing this is in config.class.php, class setting_dirchoice.
I will submit a patch for this (I have it fixed on my rincewind installation).
-
2011-10-14
andi
Where's the patch?
-
2011-10-14
chrisisbd
I did post it to the list, would here be easier?
diff --git a/lib/plugins/config/settings/config.class.php
b/lib/plugins/config/settings/config.class
index 01f15a5..5075c60 100644
--- a/lib/plugins/config/settings/config.class.php
+++ b/lib/plugins/config/settings/config.class.php
@@ -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.$fil
+ if (is_dir($file)) $list[] = $entry;
}
closedir($dh);
}
-
2011-10-15
andi
That patch appears to be broken at line 14.
-
2011-10-15
HåkanS
-
2011-10-15
chrisisbd
I see Håkan has sorted it out and fixed it, it was a line wrap problem in what
I posted here, sorry I should have checked that it got posted correctly.