Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -740,7 +740,7 @@ class baseControl
|
||||
*/
|
||||
if(!is_file($file2Included)) $this->app->triggerError("The control file $file2Included not found", __FILE__, __LINE__, $exit = true);
|
||||
chdir(dirname($file2Included));
|
||||
if($moduleName != $this->moduleName) helper::import($file2Included);
|
||||
helper::import($file2Included);
|
||||
|
||||
/**
|
||||
* 设置调用的类名。
|
||||
|
||||
@@ -1631,7 +1631,7 @@ class baseRouter
|
||||
**/
|
||||
$file2Included = $this->setActionExtFile() ? $this->extActionFile : $this->controlFile;
|
||||
chdir(dirname($file2Included));
|
||||
include $file2Included;
|
||||
helper::import($file2Included);
|
||||
|
||||
/*
|
||||
* 设置control的类名。
|
||||
@@ -1650,7 +1650,7 @@ class baseRouter
|
||||
|
||||
/* include default value for module*/
|
||||
$defaultValueFiles = glob($this->getTmpRoot() . "defaultvalue/*.php");
|
||||
if($defaultValueFiles) foreach($defaultValueFiles as $file) include $file;
|
||||
if($defaultValueFiles) foreach($defaultValueFiles as $file) helper::import($file);
|
||||
|
||||
/*
|
||||
* 使用反射机制获取函数参数的默认值。
|
||||
|
||||
@@ -1698,6 +1698,7 @@ class projectModel extends model
|
||||
foreach($users as $account => $realName)
|
||||
{
|
||||
$firstLetter = ucfirst(substr($account, 0, 1)) . ':';
|
||||
if(isset($this->config->isINT) and $this->config->isINT) $firstLetter = '';
|
||||
$users[$account] = $firstLetter . ($realName ? $realName : $account);
|
||||
}
|
||||
return array('' => '') + $users;
|
||||
|
||||
@@ -99,7 +99,7 @@ class userModel extends model
|
||||
foreach($users as $account => $user)
|
||||
{
|
||||
$firstLetter = ucfirst(substr($account, 0, 1)) . ':';
|
||||
if(strpos($params, 'noletter') !== false) $firstLetter = '';
|
||||
if((strpos($params, 'noletter') !== false) or (isset($this->config->isINT) and $this->config->isINT)) $firstLetter = '';
|
||||
$users[$account] = $firstLetter . (($user->deleted and strpos($params, 'realname') === false) ? $account : ($user->realname ? $user->realname : $account));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user