From: <bh...@us...> - 2009-03-26 19:51:22
|
Revision: 20508 http://gallery.svn.sourceforge.net/gallery/?rev=20508&view=rev Author: bharat Date: 2009-03-26 19:51:15 +0000 (Thu, 26 Mar 2009) Log Message: ----------- Rename $block_id to $id to fix ticket #192 Modified Paths: -------------- gallery3/trunk/core/controllers/admin_dashboard.php Modified: gallery3/trunk/core/controllers/admin_dashboard.php =================================================================== --- gallery3/trunk/core/controllers/admin_dashboard.php 2009-03-26 17:42:17 UTC (rev 20507) +++ gallery3/trunk/core/controllers/admin_dashboard.php 2009-03-26 19:51:15 UTC (rev 20508) @@ -31,16 +31,16 @@ public function add_block() { $form = core_block::get_add_block_form(); if ($form->validate()) { - list ($module_name, $block_id) = explode(":", $form->add_block->id->value); + list ($module_name, $id) = explode(":", $form->add_block->id->value); $available = block_manager::get_available(); if ($form->add_block->center->value) { - block_manager::add("dashboard_center", $module_name, $block_id); + block_manager::add("dashboard_center", $module_name, $id); message::success( t("Added <b>%title</b> block to the dashboard center", array("title" => $available["$module_name:$id"]))); } else { - block_manager::add("dashboard_sidebar", $module_name, $block_id); + block_manager::add("dashboard_sidebar", $module_name, $id); message::success( t("Added <b>%title</b> to the dashboard sidebar", array("title" => $available["$module_name:$id"]))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |