[Cs-content-commits] SF.net SVN: cs-content:[358] trunk/1.0/contentSystem.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2009-02-06 15:10:47
|
Revision: 358
http://cs-content.svn.sourceforge.net/cs-content/?rev=358&view=rev
Author: crazedsanity
Date: 2009-02-06 15:10:43 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
Remove debugging code from last commit.
/contentSystem.class.php:
* add_include():
-- added header to explain what it does
-- removed debugging information
-- silently ignores duplicate includes (this should potentially cause
an exception...)
Modified Paths:
--------------
trunk/1.0/contentSystem.class.php
Modified: trunk/1.0/contentSystem.class.php
===================================================================
--- trunk/1.0/contentSystem.class.php 2009-02-05 22:04:03 UTC (rev 357)
+++ trunk/1.0/contentSystem.class.php 2009-02-06 15:10:43 UTC (rev 358)
@@ -871,20 +871,14 @@
//------------------------------------------------------------------------
+ /**
+ * Method that appends filenames to the list of include scripts.
+ */
private final function add_include($file) {
$myFile = $this->fileSystemObj->realcwd .'/'. $file;
- if(array_search($myFile, $this->includesList)) {
- $this->gfObj->debug_print("<h1><font color='red'>". __METHOD__ .": file (". $myFile .") already exists... </h1>". cs_debug_backtrace(0) ."</font>");
- #exit;
- }
- else {
+ if(!array_search($myFile, $this->includesList)) {
$this->includesList[] = $myFile;
-
- $this->gfObj->debug_print("<h1>". __METHOD__ .": included (". $myFile .")</h1>");
}
- if($file == 'index.inc') {
- cs_debug_backtrace(1);
- }
}//end add_include()
//------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|