Skip to content

Commit 2e184e0

Browse files
committed
Merge pull request #4 from liu21st/master
merge
2 parents 1da1304 + 41a3e2a commit 2e184e0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Extend/Behavior/CheckLangBehavior.class.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ private function checkLanguage() {
6363
}
6464
// 定义当前语言
6565
define('LANG_SET',strtolower($langSet));
66-
// 读取项目公共语言包
67-
if (is_file(LANG_PATH.LANG_SET.'/common.php'))
68-
L(include LANG_PATH.LANG_SET.'/common.php');
66+
6967
$group = '';
70-
$lang_path = C('APP_GROUP_MODE')==1 ? BASE_LIB_PATH.'Lang/'.LANG_SET.'/' : LANG_PATH.LANG_SET.'/';
71-
// 读取当前分组公共语言包
72-
if (defined('GROUP_NAME')){
68+
$lang_path = (defined('GROUP_NAME') && C('APP_GROUP_MODE')==1) ? BASE_LIB_PATH.'Lang/'.LANG_SET.'/' : LANG_PATH.LANG_SET.'/';
69+
// 读取项目或者独立分组公共语言包
70+
if (is_file($lang_path.'common.php'))
71+
L(include $lang_path.'common.php');
72+
// 普通分组公共语言包
73+
if (defined('GROUP_NAME') && C('APP_GROUP_MODE')==0){
7374
if (is_file($lang_path.GROUP_NAME.'.php'))
7475
L(include $lang_path.GROUP_NAME.'.php');
7576
$group = GROUP_NAME.C('TMPL_FILE_DEPR');

Extend/Library/ORG/Util/Page.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function __construct($totalRows,$listRows='',$parameter='',$url='') {
5858
$this->nowPage = $this->totalPages;
5959
}
6060
$this->firstRow = $this->listRows*($this->nowPage-1);
61+
if(!empty($url)) $this->url = $url;
6162
}
6263

6364
public function setConfig($name,$value) {
@@ -150,4 +151,4 @@ public function show() {
150151
return $pageStr;
151152
}
152153

153-
}
154+
}

0 commit comments

Comments
 (0)