------------------------------------------------------------
revno: 1085
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Sat 2012-02-11 22:06:20 +0100
message:
  minor corrections
modified:
  index.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'index.php'
--- index.php	2012-02-11 17:17:39 +0000
+++ index.php	2012-02-11 21:06:20 +0000
@@ -54,8 +54,6 @@
 	 * @see widgets.php
 	 */
 	require_once("libs/widgets.php");
-
-	require_once("libs/widgets.php");
 	$layout = new CreateLayout();
 
 	$noheaders  = false;
@@ -92,7 +90,8 @@
     $html_output = $engine->layout();
 	
 } else {
-	$html_output = "<p>".
+	$html_output = 
+		"<p>".
 		t( sprintf('Unkown engine %1$s. File /libs/Engine_%1$s.php doesn\'t exists.',$engineType)).
 		"</p>";
 }
@@ -128,8 +127,6 @@
 } // end of using tidy
 
 
-
-
 if ($html_cache_file) {
 	//write the cache file
 	error_log($html_output, 3, $html_cache_file);
@@ -138,7 +135,7 @@
 /**
  * For ending the counter to see the page load time.
  */
-if (isset($config["debug"]) and $config["debug"]){
+if ( is_debug_on() ){
 	$end = (float)array_sum(explode(' ',microtime()));
 	$end_time = sprintf("%.4f", ($end-$start_time));
 	echo "\n <!-- queries: ".$db->num_queries." -->\n";

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to