Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Stolz committed Sep 7, 2014
2 parents 8764ef9 + be054a5 commit 3763038
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Stolz/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ public function resetJs()
*/
protected function cssPipeline()
{
$file = md5(implode($this->css)).'.css';
$timestamp = (intval($this->pipeline) > 1) ? '?' . $this->pipeline : null;
$file = md5($timestamp . implode($this->css)).'.css';
$relative_path = "{$this->css_dir}/{$this->pipeline_dir}/$file";
$absolute_path = $this->public_dir . DIRECTORY_SEPARATOR . $this->css_dir . DIRECTORY_SEPARATOR . $this->pipeline_dir . DIRECTORY_SEPARATOR . $file;
$timestamp = (intval($this->pipeline) > 1) ? '?' . $this->pipeline : null;

// If pipeline exist return it
if(file_exists($absolute_path))
Expand Down Expand Up @@ -384,10 +384,10 @@ protected function cssPipeline()
*/
protected function jsPipeline()
{
$file = md5(implode($this->js)).'.js';
$timestamp = (intval($this->pipeline) > 1) ? '?' . $this->pipeline : null;
$file = md5($timestamp . implode($this->js)).'.js';
$relative_path = "{$this->js_dir}/{$this->pipeline_dir}/$file";
$absolute_path = $this->public_dir . DIRECTORY_SEPARATOR . $this->js_dir . DIRECTORY_SEPARATOR . $this->pipeline_dir . DIRECTORY_SEPARATOR . $file;
$timestamp = (intval($this->pipeline) > 1) ? '?' . $this->pipeline : null;

// If pipeline exist return it
if(file_exists($absolute_path))
Expand Down

0 comments on commit 3763038

Please sign in to comment.