mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 10:13:00 +02:00
- no use of "realpath" function anymore : this function is too often buggy
and returns nothing (crash of template system as consequence...). The use of this function was not essential git-svn-id: http://piwigo.org/svn/trunk@749 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -271,7 +271,7 @@ class Template {
|
||||
// Check if it's an absolute or relative path.
|
||||
if (substr($filename, 0, 1) != '/')
|
||||
{
|
||||
$filename = realpath($this->root . '/' . $filename);
|
||||
$filename = $this->root.'/'.$filename;
|
||||
}
|
||||
|
||||
if (!file_exists($filename))
|
||||
|
||||
Reference in New Issue
Block a user