Log not existed package in CClientScript when YII_DEBUG enabled

This commit is contained in:
Alexander Pletnev
2014-05-31 18:15:41 +04:00
parent 9f3170680a
commit 3cefe90155

View File

@@ -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;
}