Description: Follow symbolic links when listing available templates
 The Debian package moves the templates to /etc, to allow the local
 administrator to add his own. This needs Collabtive to be able to
 follow the symlinks.
Author: Gunnar Wolf <gwolf@debian.org>
Forwarded: http://collabtive.o-dyn.de/forum/viewtopic.php?f=10&t=6538&p=12218
Last-Update: 2014-01-19
Index: collabtive/include/class.settings.php
===================================================================
--- collabtive.orig/include/class.settings.php
+++ collabtive/include/class.settings.php
@@ -117,7 +117,7 @@ class settings {
         while (false !== ($file = readdir($handle))) {
             $type = filetype(CL_ROOT . "/templates/" . $file);
 
-            if ($type == "dir" and $file != "." and $file != "..") {
+            if (($type == "dir" or $type == "link") and $file != "." and $file != "..") {
                 $template = $file;
                 array_push($templates, $template);
             }
