Skip to content

Commit

Permalink
Merge pull request zendframework#4798 from dimadietto/master
Browse files Browse the repository at this point in the history
Default mode variables HeadScript and InlineScript
  • Loading branch information
weierophinney committed Jul 19, 2013
2 parents d0247b1 + f80e6f3 commit 8c39be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/HeadScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct()
* @param string $type Script type and/or array of script attributes
* @return HeadScript
*/
public function __invoke($mode = HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
public function __invoke($mode = self::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
{
if ((null !== $spec) && is_string($spec)) {
$action = ucfirst(strtolower($mode));
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/InlineScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineScript extends HeadScript
* @param string $type Script type and/or array of script attributes
* @return InlineScript
*/
public function __invoke($mode = HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
public function __invoke($mode = self::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
{
return parent::__invoke($mode, $spec, $placement, $attrs, $type);
}
Expand Down

0 comments on commit 8c39be8

Please sign in to comment.