* Refactory the printIcon function, replace the create title instead copy title if method='create' and icon='copy';

This commit is contained in:
chencongzhi520@gmail.com
2012-07-02 16:06:25 +00:00
parent 7c3d4243a1
commit fdec83821d
+1
View File
@@ -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;