Commit 318f2cd5 authored by Raph El's avatar Raph El
Browse files

Hotfix Calendar change asset module

parent 94f7e548
......@@ -32,7 +32,7 @@ HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesTheme, Yii::app()->requ
$cssAnsScriptFilesModule = array(
'/js/default/calendar.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, $this->module->assetsUrl);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFilesModule, Yii::app()->getModule( "co2" )->getAssetsUrl());
HtmlHelper::registerCssAndScriptsFiles( array( '/css/calendar.css') , Yii::app()->theme->baseUrl. '/assets');
$calendarParams=(@Yii::app()->session["paramsConfig"]["pages"]["#agenda"] && @Yii::app()->session["paramsConfig"]["pages"]["#agenda"]["calendar"]) ?Yii::app()->session["paramsConfig"]["pages"]["#agenda"]["calendar"] : null;
if(isset(Yii::app()->session["costum"]) && !empty($calendarParams)){
......
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