Commits

Christoffer Niska committed 994ac46

Add property to Bootstrap component for controlling publishing of assets

Comments (0)

Files changed (1)

components/Bootstrap.php

 	 * @since 0.9.8
 	 */
 	public $plugins = array();
+	/**
+	 * @var boolean indicates whether assets should be republished on every request.
+	 */
+	public $publishAssets = YII_DEBUG;
 
 	protected $_assetsUrl;
 
 		else
 		{
 			$assetsPath = Yii::getPathOfAlias('bootstrap.assets');
-			$assetsUrl = Yii::app()->assetManager->publish($assetsPath, true, -1, YII_DEBUG);
+			$assetsUrl = Yii::app()->assetManager->publish($assetsPath, true, -1, $this->publishAssets);
 			return $this->_assetsUrl = $assetsUrl;
 		}
 	}