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: 2012-01-30
Index: collabtive-0.7.5/include/class.settings.php
===================================================================
--- collabtive-0.7.5.orig/include/class.settings.php	2012-01-20 14:04:54.000000000 -0600
+++ collabtive-0.7.5/include/class.settings.php	2012-01-30 11:55:23.000000000 -0600
@@ -125,7 +125,7 @@
         {
             $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);
