diff --git a/src/Resource/ExtendsPlugin.php b/src/Resource/ExtendsPlugin.php index acce54e2a..0f9c9de25 100644 --- a/src/Resource/ExtendsPlugin.php +++ b/src/Resource/ExtendsPlugin.php @@ -93,7 +93,11 @@ public function getContent(Source $source) */ public function getBasename(Source $source) { - return str_replace(':', '.', basename($source->getResourceName())); + $search = array(':'); + if (\Smarty\Smarty::$_IS_WINDOWS) { + $search = array(':', '|'); + } + return str_replace($search, '.', basename($source->getResourceName())); } /*