Skip to content

Commit

Permalink
删除一行多余的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 10, 2012
1 parent 0fc4763 commit f7b6848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ThinkPHP/Lib/Core/App.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static public function init() {
define('THEME_PATH', TMPL_PATH.$group.(THEME_NAME?THEME_NAME.'/':''));
define('APP_TMPL_PATH',__ROOT__.'/'.APP_NAME.(APP_NAME?'/':'').basename(TMPL_PATH).'/'.$group.(THEME_NAME?THEME_NAME.'/':''));
}
C('TEMPLATE_NAME',THEME_PATH.MODULE_NAME.C('TMPL_FILE_DEPR').ACTION_NAME.C('TMPL_TEMPLATE_SUFFIX'));

C('CACHE_PATH',CACHE_PATH.$group);
//动态配置 TMPL_EXCEPTION_FILE,改为绝对地址
C('TMPL_EXCEPTION_FILE',realpath(C('TMPL_EXCEPTION_FILE')));
Expand Down Expand Up @@ -125,7 +125,7 @@ static public function exec() {
}
// 获取当前操作名 支持动态路由
$action = C('ACTION_NAME')?C('ACTION_NAME'):ACTION_NAME;
C('TEMPLATE_NAME',THEME_PATH.MODULE_NAME.(defined('GROUP_NAME')?C('TMPL_FILE_DEPR'):'/').$action.C('TMPL_TEMPLATE_SUFFIX'));
C('TEMPLATE_NAME',THEME_PATH.MODULE_NAME.C('TMPL_FILE_DEPR').$action.C('TMPL_TEMPLATE_SUFFIX'));
$action .= C('ACTION_SUFFIX');
try{
if(!preg_match('/^[A-Za-z](\w)*$/',$action)){
Expand Down

0 comments on commit f7b6848

Please sign in to comment.