Commit 892cad16 authored by thomas craipeau's avatar thomas craipeau
Browse files

change container alias camelCase

parent b2854adc
......@@ -242,7 +242,7 @@ class News {
$news["media"] = $params["media"];
if(isset($params["media"]["content"]) && isset($params["media"]["content"]["image"]) && !isset($params["media"]["content"]["imageId"])){
$urlImage = self::uploadNewsImage($params["media"]["content"]["image"],$params["media"]["content"]["imageSize"],Yii::get('session')["userId"]);
$news["media"]["content"]["image"]= Yii::get('Url')::base()."/".$urlImage;
$news["media"]["content"]["image"]= Yii::get('url')::base()."/".$urlImage;
}
}
if (isset($params["mediaImg"]))
......@@ -571,7 +571,7 @@ class News {
$endPath=explode(Yii::get('yii\base\Module')->params['uploadUrl'],$params["media"]["content"]["image"]);
if(isset($endPath[1]) && !empty($endPath[1]) && !file_exists ( Yii::get('yii\base\Module')->params['uploadDir'].$endPath[1])){
$urlImage = self::uploadNewsImage($params["media"]["content"]["image"],$params["media"]["content"]["imageSize"],Yii::get('session')["userId"]);
$set["media"]["content"]["image"]= Yii::get('Url')::base()."/".$urlImage;
$set["media"]["content"]["image"]= Yii::get('url')::base()."/".$urlImage;
}
}
}
......
......@@ -230,7 +230,7 @@ if(isset(Yii::get('session')['userId'])){ ?>
<div class="dropdown no-padding pull-right">
<a data-toggle="dropdown" class="btn btn-default" id="btn-toogle-dropdown-targetIsAuthor" href="#">
<?php if(@Yii::get('session')["user"]["profilThumbImageUrl"]){ ?>
<img height=20 width=20 src='<?php echo Yii::get('Url')::base(true).Yii::get('session')["user"]["profilThumbImageUrl"]; ?>'>
<img height=20 width=20 src='<?php echo Yii::get('url')::base(true).Yii::get('session')["user"]["profilThumbImageUrl"]; ?>'>
<?php } else { ?>
<img height=20 width=20 src='<?php echo $this->module->assetsUrl.'/images/thumb/default_citoyens.png' ?>'>
<?php } ?>
......@@ -241,7 +241,7 @@ if(isset(Yii::get('session')['userId'])){ ?>
<a href="javascript:;" class="targetIsAuthor" data-value="1">
<h4 class="list-group-item-heading">
<?php if(@$parent["profilThumbImageUrl"]){ ?>
<img height=20 width=20 src='<?php echo Yii::get('Url')::base(true).$parent["profilThumbImageUrl"] ?>'>
<img height=20 width=20 src='<?php echo Yii::get('url')::base(true).$parent["profilThumbImageUrl"] ?>'>
<?php } else { ?>
<img height=20 width=20 src='<?php echo $this->module->assetsUrl.'/images/thumb/default_'.$contextParentType.'.png' ?>'>
<?php } ?>
......@@ -252,7 +252,7 @@ if(isset(Yii::get('session')['userId'])){ ?>
<li>
<a href="javascript:;" class="targetIsAuthor" data-value="0"><h4 class="list-group-item-heading">
<?php if(@Yii::get('session')["user"]["profilThumbImageUrl"]){ ?>
<img height=20 width=20 src='<?php echo Yii::get('Url')::base(true).Yii::get('session')["user"]["profilThumbImageUrl"]; ?>'>
<img height=20 width=20 src='<?php echo Yii::get('url')::base(true).Yii::get('session')["user"]["profilThumbImageUrl"]; ?>'>
<?php } else { ?>
<img height=20 width=20 src='<?php echo $this->module->assetsUrl.'/images/thumb/default_citoyens.png' ?>'>
<?php } ?>
......
......@@ -48,7 +48,7 @@ $cssAnsScriptFiles = array(
'/plugins/showdown/showdown.min.js',
'/plugins/to-markdown/to-markdown.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFiles, Yii::get('Url')::base(true));
HtmlHelper::registerCssAndScriptsFiles($cssAnsScriptFiles, Yii::get('url')::base(true));
?>
<style>
......
......@@ -75,7 +75,7 @@ font-family: "Homestead";
<div class="clear"></div>
<div>
<?php /*if(YII_DEBUG){?>
<?php echo Yii::get('Html')::encode($message); ?>
<?php echo Yii::get('html')::encode($message); ?>
<pre><?php echo print_r(debug_backtrace(),true) ?></pre>
<?php }*/?>
</div>
......
Supports Markdown
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