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.7/include/class.settings.php
===================================================================
--- collabtive-0.7.orig/include/class.settings.php	2011-04-27 18:19:24.000000000 -0500
+++ collabtive-0.7/include/class.settings.php	2011-06-03 13:54:00.000000000 -0500
@@ -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);
