mirror of
https://github.com/reactos/web.git
synced 2024-12-04 01:42:24 +00:00
[ROSWEB] Relative paths suck when symlinks are involved, so source the layout parts from the only absolute server path that is guaranteed to work.
This commit is contained in:
parent
71d302e7cd
commit
367c0bd0db
@ -96,9 +96,9 @@
|
||||
|
||||
private function _queryProvider($part)
|
||||
{
|
||||
if (file_exists(__DIR__ . '../../www.reactos.org_content/parts/' . $part))
|
||||
if (file_exists('/srv/www/www.reactos.org_content/parts/' . $part))
|
||||
{
|
||||
readfile(__DIR__ . '../../www.reactos.org_content/parts/' . $part);
|
||||
readfile('/srv/www/www.reactos.org_content/parts/' . $part);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user