更新核心类库

This commit is contained in:
thinkphp
2015-01-19 11:04:05 +08:00
parent 5f1623aa7d
commit b34b209af4
85 changed files with 1266 additions and 6142 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) {