更新核心类库

This commit is contained in:
thinkphp
2015-01-17 22:26:14 +08:00
parent 223760b65d
commit 5a8e9fffde
41 changed files with 614 additions and 387 deletions

View File

@@ -44,7 +44,7 @@ class Log {
* @return array
*/
static public function getLog($level=''){
return $level?self::$log[$level]:self::$log;
return $level ? self::$log[$level] : self::$log;
}
/**
@@ -55,7 +55,7 @@ class Log {
* @return void
*/
static public function save($destination='',$level='') {
$log = $level?self::$log[$level]:self::$log;
$log = self::getLog($level);
if(empty($log)) return ;
$message = '';
if($level) {