Commit e71853c2 authored by Clément Damiens's avatar Clément Damiens
Browse files

up parentassetsurl
parent 9e3c1667
......@@ -75,7 +75,11 @@ class ApiModule extends CWebModule
return false;
}
private $_assetsUrl;
public function getParentAssetsUrl()
{
return ( @Yii::app()->params["module"]["parent"] ) ? Yii::app()->getModule( Yii::app()->params["module"]["parent"] )->getAssetsUrl() : self::getAssetsUrl();
}
public function getAssetsUrl()
{
if ($this->_assetsUrl === null)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment