From b0a0f2ad30f7a8e6f8a4ac5fea4a11660e0b8fef Mon Sep 17 00:00:00 2001 From: "renan.saddam" Date: Fri, 6 Mar 2009 13:29:56 +0000 Subject: [PATCH] Refactoring last change to cover issues like [7636] git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8079 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 8d08a00f5cf..61e750bee31 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -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 */ @@ -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);