------------------------------------------------------------
revno: 1186
committer: Roger Martin <rg1...@gmail.com>
branch nick: aikiframework
timestamp: Wed 2012-04-25 22:30:07 +0200
message:
  literals with __() functions
modified:
  libs/Plugins.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/Plugins.php'
--- libs/Plugins.php	2012-01-19 07:04:41 +0000
+++ libs/Plugins.php	2012-04-25 20:30:07 +0000
@@ -96,7 +96,7 @@
 						$this->plugins[] = new $load->plugin_class_name($this, $pluginsActivated[$load->plugin_id]);
 					} else {
 						// @todo conditional warning when file not exist.
-						$aiki->message->error("<br>Can't load plugin:" . $file, NULL, false);
+						$aiki->message->error( __sprintf("<br>Can't load plugin:%s",$file), NULL, false);
 						// deactive plugins.
 						// @todo warning to system adminstrator?
 						$db->query("UPDATE plugin_state='missing' WHERE plugin_id='" . $load->plugin_id . "'");
@@ -189,8 +189,8 @@
 		 $sql = "INSERT INTO aiki_plugin_configurations" .
 			" (plconf_plugin_id, plconf_routes, plconf_priority, plconf_values, plconf_active)" .
 			" VALUES ({$plugin_id},'{$route}', '{$priority}','" .
-			addslashes(serialize($vars))."','active')";				   
-		 echo "insertando:", $sql, "<br>";
+			addslashes(serialize($vars))."','active')";	
+		 /* @TODO output */	
 		 
 		 $db->query($sql);
 
@@ -353,5 +353,3 @@
 	abstract function action($action, &$text);
 
 }
-
-?>

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to