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: 2011-01-25
Index: collabtive-0.6.5/include/class.settings.php
===================================================================
--- collabtive-0.6.5.orig/include/class.settings.php	2010-07-01 02:19:06.000000000 -0500
+++ collabtive-0.6.5/include/class.settings.php	2011-01-25 12:40:17.000000000 -0600
@@ -122,7 +122,8 @@
         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);
