diff --git a/modules/page/page.view.php b/modules/page/page.view.php index 099e6277b..322f72a86 100644 --- a/modules/page/page.view.php +++ b/modules/page/page.view.php @@ -157,8 +157,7 @@ @include($path); $content = ob_get_clean(); // Replace relative path to the absolute path - $path_info = pathinfo($path); - $this->path = str_replace('\\', '/', realpath($path_info['dirname'])).'/'; + $this->path = str_replace('\\', '/', realpath(dirname($path))) . '/'; $content = preg_replace_callback('/(target=|src=|href=|url\()("|\')?([^"\'\)]+)("|\'\))?/is',array($this,'_replacePath'),$content); $content = preg_replace_callback('/(