Commits

Christoffer Niska committed b8403fd

Fixed an issue with the SeoControllerBehavior.

Comments (0)

Files changed (2)

components/SeoControllerBehavior.php

  * @author Christoffer Niska <ChristofferNiska@gmail.com>
  * @copyright Copyright &copy; Christoffer Niska 2011-
  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
+ * @package ext.seo.components
  */
 
 class SeoControllerBehavior extends CBehavior
 	 * @property array the page meta properties.
 	 */
 	public $metaProperties = array();
+	/**
+	 * @property string the canonical URL.
+	 */
+	public $canonical;
 
 	/**
 	 * Adds a meta property to the current page.

widgets/SeoHead.php

 	 */
 	protected function renderContent()
 	{
-		$this->renderTitle();
+		$this->renderTitle().PHP_EOL;
 
 		foreach ($this->httpEquivs as $name => $content)
-			echo '<meta http-equiv="'.$name.'" content="'.$content.'" />';
+			echo '<meta http-equiv="'.$name.'" content="'.$content.'" />'.PHP_EOL;
 
 		if ($this->_description !== null)
-			echo CHtml::metaTag($this->_description, 'description');
+			echo CHtml::metaTag($this->_description, 'description').PHP_EOL;
 
 		if ($this->defaultKeywords !== null)
-			echo CHtml::metaTag($this->_keywords, 'keywords');
+			echo CHtml::metaTag($this->_keywords, 'keywords').PHP_EOL;
 
 		foreach ($this->_properties as $name => $content)
-			echo '<meta property="'.$name.'" content="'.$content.'" />'; // we can't use Yii's method for this.
+			echo '<meta property="'.$name.'" content="'.$content.'" />'.PHP_EOL; // we can't use Yii's method for this.
 	}
 	
 	/**