Add new WEB_ROOT constant

This commit is contained in:
Alex Cabal 2020-03-20 11:37:42 -05:00
parent f55cf4b7a3
commit 56aaab7152
5 changed files with 8 additions and 6 deletions

View file

@ -72,7 +72,7 @@ class Ebook{
}
$this->WwwFilesystemPath = $wwwFilesystemPath;
$this->Url = str_replace(SITE_ROOT . '/web/www', '', $this->WwwFilesystemPath);
$this->Url = str_replace(WEB_ROOT, '', $this->WwwFilesystemPath);
$rawMetadata = file_get_contents($wwwFilesystemPath . '/src/epub/content.opf') ?: '';