Permalink
Browse files

Merge pull request #1827 from piotr-cz/patch_JDocument

Allow chaining of JDocumentHTML setHtml5 like in other methods
  • Loading branch information...
2 parents 6510e7d + 923861c commit ece5d2b8cedf9ee7ffd625539d9e9e1d6c5a94ba @eddieajau eddieajau committed Feb 24, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 libraries/joomla/document/html/html.php
@@ -331,7 +331,7 @@ public function isHtml5()
*
* @param bool $state True when HTML5 should be output
*
- * @return void
+ * @return JDocumentHTML instance of $this to allow chaining
*
* @since 12.1
*/
@@ -341,6 +341,8 @@ public function setHtml5($state)
{
$this->_html5 = $state;
}
+
+ return $this;
}
/**

0 comments on commit ece5d2b

Please sign in to comment.