Skip to content

Commit

Permalink
Refactoring last change to cover issues like [7636]
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8079 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
renan committed Mar 6, 2009
1 parent c164be8 commit b0a0f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/view/helpers/html.php
Expand Up @@ -379,7 +379,7 @@ function css($path, $rel = null, $htmlAttributes = array(), $inline = true) {
/**
* Builds CSS style data from an array of CSS properties
*
* @param array $data Style data array
* @param array $data Style data array
* @param boolean $inline Whether or not the style block should be displayed inline
* @return string CSS styling data
*/
Expand Down Expand Up @@ -435,7 +435,7 @@ function image($path, $options = array()) {
} elseif ($path[0] === '/') {
$path = $this->webroot($path);
} elseif (strpos($path, '://') === false) {
if (Configure::read('Asset.timestamp') == true && Configure::read() > 0 || Configure::read('Asset.timestamp') === 'force') {
if ((Configure::read('Asset.timestamp') == true && Configure::read() > 0) || Configure::read('Asset.timestamp') === 'force') {
$path .= '?' . @filemtime(str_replace('/', DS, WWW_ROOT . IMAGES_URL . $path));
}
$path = $this->webroot(IMAGES_URL . $path);
Expand Down

0 comments on commit b0a0f2a

Please sign in to comment.