diff --git a/library/Class/Article.php b/library/Class/Article.php index cd863632543c65024ba18127f7cff617071d0554..0628e6b263e9b9a276065286da36d2c1a06fbe0f 100644 --- a/library/Class/Article.php +++ b/library/Class/Article.php @@ -990,7 +990,7 @@ class Class_Article extends Storm_Model_Abstract { return $url; $path = str_replace(Class_Url::baseUrl(), '', $url); - if(substr($path, 0, 0) == '/') + if(strpos($path, '/') === 0) $path = '.' . $path; if($this->getFileWriter()->fileExists($path))