mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-14 03:56:53 +01:00
Log not existed package in CClientScript when YII_DEBUG enabled
This commit is contained in:
@@ -593,6 +593,12 @@ class CClientScript extends CApplicationComponent
|
||||
$this->hasScripts=true;
|
||||
$params=func_get_args();
|
||||
$this->recordCachingAction('clientScript','registerCoreScript',$params);
|
||||
} else {
|
||||
if(YII_DEBUG=='')
|
||||
{
|
||||
$message=Yii::t('yii','There is no package:' . $name);
|
||||
Yii::log($message, CLogger::LEVEL_WARNING, 'system.web.CClientScript');
|
||||
}
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user