------------------------------------------------------------
revno: 1052
committer: Jon Phillips <[email protected]>
branch nick: public
timestamp: Sun 2012-01-29 19:21:28 +0800
message:
  rolled back my changes to remove comments, but commented on it in the code. 
arg
modified:
  libs/widgets.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 'libs/widgets.php'
--- libs/widgets.php	2012-01-29 08:01:34 +0000
+++ libs/widgets.php	2012-01-29 11:21:28 +0000
@@ -202,10 +202,15 @@
 			
 			if (!$custom_output)
             {
-                if ( isset($config["debug"]) and $config["debug"] ) {
+                /**
+                 * @TODO: Want to hide this, but aiki using big hack to
+                 *        work with kill widgets.
+                 *        if ( isset($config["debug"]) and $config["debug"] )
+                 *
+                 *        Not changing, waiting for real widget parser.
+                 */
 				    $this->widget_html .=
 					"\n <!--start {$widget->widget_name}({$widget->id})--> \n";
-                }
 				
 				if ( $widget->widget_type &&
 					$widget->remove_container != 1 ) {
@@ -247,11 +252,13 @@
 					$widget->remove_container != 1) {
 					$this->widget_html .= "\n</$widget->widget_type>\n";
 				}
-				
-                if ( (isset($config["debug"]) and $config["debug"]) ) {
+			    /**
+                 * @TODO: Aiki needs this code, but when not in debug mode
+                 *        we should not be seeing it
+                 *        if ( (isset($config["debug"]) and $config["debug"]) )
+                 */
 				    $this->widget_html .=
 					   "\n <!--{$widget->widget_name}({$widget->id}) end--> \n";
-                }
 			}
 			
 
@@ -444,9 +451,6 @@
 			if ( $widget_select && isset($num_results) && $num_results > 0 ) {
 				$widgetContents = '';
 				foreach ($widget_select as $widget_value) {
-					/**
-					 * @todo put this behind debug time option
-					 */
 					if (!$custom_output and 
                         ( isset($config["debug"]) and $config["debug"] ) ) 
                     {

_______________________________________________
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