Skip to content

Commit

Permalink
Merge pull request #61 from villeristi/master
Browse files Browse the repository at this point in the history
Fixed the Stylesheet.class.php $target_path & target_uri to contain only the file, not the full path & uri to file.
  • Loading branch information
fabrizim committed Aug 19, 2014
2 parents a798a45 + f647bcc commit fd2251d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Stylesheet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ public function computeTargetPath()
* Since this moment, everything is configured to be usable
*
* @protected
* @author oncletom
* @author villeristi
* @since 1.0
* @version 1.1
* @version 1.1.1
*/
protected function configurePath()
{
$target_file = $this->computeTargetPath();

$this->source_path = WP_CONTENT_DIR.preg_replace('#^'.content_url().'#U', '', $this->stylesheet->src);
$this->source_uri = $this->stylesheet->src;
$this->target_path = self::$upload_dir.$target_file;
$this->target_uri = self::$upload_uri.$target_file;
$this->target_path = self::$upload_dir.'/'.basename($target_file);
$this->target_uri = self::$upload_uri.'/'.basename($target_file);

$this->setSourceTimestamp(filemtime($this->source_path));
}
Expand Down

0 comments on commit fd2251d

Please sign in to comment.