From fdec83821d4a175693d6223077cd8f2a1d4c23bc Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Mon, 2 Jul 2012 16:06:25 +0000 Subject: [PATCH] * Refactory the printIcon function, replace the create title instead copy title if method='create' and icon='copy'; --- module/common/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/common/control.php b/module/common/control.php index 78c463bae7..0fa14c1589 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -273,6 +273,7 @@ class common extends control /* Set the icon title, try search the $method defination in $module's lang or $common's lang. */ $title = $method; + if($method == 'create' and $icon == 'copy') $method = 'copy'; if(isset($lang->$method) and is_string($lang->$method)) $title = $lang->$method; if((isset($lang->$module->$method) or $app->loadLang($module)) and isset($lang->$module->$method) and is_string($lang->$module->$method)) $title = $lang->$module->$method;