* Refactory the printIcon function, replace the create title instead copy title if method='create' and icon='copy';
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user