[pLog-svn] r6430 - plog/branches/lifetype-1.2/class/template/templatesets
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu May 1 15:45:44 EDT 2008
Author: jondaley
Date: 2008-05-01 15:45:44 -0400 (Thu, 01 May 2008)
New Revision: 6430
Modified:
plog/branches/lifetype-1.2/class/template/templatesets/templatefinder.class.php
Log:
template finder shouldn't return files, only directories
Modified: plog/branches/lifetype-1.2/class/template/templatesets/templatefinder.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/template/templatesets/templatefinder.class.php 2008-05-01 19:42:09 UTC (rev 6429)
+++ plog/branches/lifetype-1.2/class/template/templatesets/templatefinder.class.php 2008-05-01 19:45:44 UTC (rev 6430)
@@ -46,6 +46,11 @@
// be considered an additional template!!
$ignoreRegexp = '/(unported|bin|LifeType|default|rss|wizard|summary|misc|admin|blog_[0-9]*|^\..+)$/i';
+ // If it isn't a directory, it can't be a template
+ if(!File::isDir($fileName)){
+ return null;
+ }
+
// get base name from the current full path
$fileKey = basename( $fileName );
More information about the pLog-svn
mailing list