From b13596f0319446b9bb2ea29188c2096d94d6e0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Ristim=C3=A4ki?= Date: Tue, 19 Aug 2014 14:41:59 +0300 Subject: [PATCH 1/2] Fixed the Stylesheet.class.php to contain only the file, not the path. --- lib/Stylesheet.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Stylesheet.class.php b/lib/Stylesheet.class.php index fb7414b..4c98e72 100644 --- a/lib/Stylesheet.class.php +++ b/lib/Stylesheet.class.php @@ -86,8 +86,8 @@ protected function configurePath() $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)); } From f647bcc5fa42f6bb18ad96183581b78d90b86caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Ristim=C3=A4ki?= Date: Tue, 19 Aug 2014 14:44:09 +0300 Subject: [PATCH 2/2] Fixed the Stylesheet.class.php to contain only the file, not the path. --- lib/Stylesheet.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Stylesheet.class.php b/lib/Stylesheet.class.php index 4c98e72..b3fe016 100644 --- a/lib/Stylesheet.class.php +++ b/lib/Stylesheet.class.php @@ -76,9 +76,9 @@ 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() {