[Cs-content-commits] SF.net SVN: cs-content:[428] trunk/1.0/contentSystem.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2009-08-10 00:50:26
|
Revision: 428
http://cs-content.svn.sourceforge.net/cs-content/?rev=428&view=rev
Author: crazedsanity
Date: 2009-08-09 23:58:15 +0000 (Sun, 09 Aug 2009)
Log Message:
-----------
Fix issue caused by last fix.
/contentSystem.class.php:
* load_includes():
-- remove "/index" from the section if it exists.
Modified Paths:
--------------
trunk/1.0/contentSystem.class.php
Modified: trunk/1.0/contentSystem.class.php
===================================================================
--- trunk/1.0/contentSystem.class.php 2009-08-09 23:20:09 UTC (rev 427)
+++ trunk/1.0/contentSystem.class.php 2009-08-09 23:58:15 UTC (rev 428)
@@ -669,7 +669,11 @@
}
//include the final shared & index files.
- if($this->incFs->cd('/'. $this->section)) {
+ $mySection = $this->section;
+ if(preg_match('/\/index$/', $mySection)) {
+ $mySection = preg_replace('/\/index$/','', $mySection);
+ }
+ if($this->incFs->cd('/'. $mySection)) {
$lsData = $this->incFs->ls();
if(isset($lsData['shared.inc']) && is_array($lsData['shared.inc'])) {
$this->add_include('shared.inc');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|