* task#982.

This commit is contained in:
wangchunsheng
2012-12-12 02:18:16 +00:00
parent e9f11a3287
commit 0f963343f6
46 changed files with 346 additions and 54 deletions
+4 -2
View File
@@ -258,7 +258,7 @@ class groupModel extends model
public function sortResource()
{
$resources = $this->lang->resource;
unset($this->lang->resource);
$this->lang->resource = new stdclass();
/* sort moduleOrder. */
ksort($this->lang->moduleOrder, SORT_ASC);
@@ -276,7 +276,9 @@ class groupModel extends model
/* sort methodOrder. */
foreach($this->lang->resource as $moduleName => $resources)
{
$resources = (array)$resources;
$resources = (array)$resources;
$tmpResources = new stdclass();
if(isset($this->lang->$moduleName->methodOrder))
{
ksort($this->lang->$moduleName->methodOrder, SORT_ASC);