Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #30 from eddiejr/master
Browse files Browse the repository at this point in the history
Adjust to P4A::addCss/addJavascript functions
  • Loading branch information
fballiano committed Sep 11, 2014
2 parents b3b157a + 8a40c4a commit e2e15e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p4a/objects/p4a.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ public function addCss($uri, $media = "screen")
if (!isset($this->_css[$uri])) {
$this->_css[$uri] = array();
}
$this->_css[$uri][$media] = null;
$this->_css[$uri][$media] = true;
return $this;
}

Expand Down Expand Up @@ -925,7 +925,7 @@ public static function getCssConstants()
*/
public function addJavascript($uri)
{
$this->_javascript[$uri] = null;
$this->_javascript[$uri] = true;
return $this;
}

Expand Down

0 comments on commit e2e15e6

Please sign in to comment.