mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Convert newsletter to use Users table as base
This commit is contained in:
parent
b48a788430
commit
011cd747f1
34 changed files with 444 additions and 307 deletions
|
@ -59,7 +59,11 @@ class Ebook{
|
|||
public $TextSinglePageUrl;
|
||||
public $TocEntries = null; // A list of non-Roman ToC entries ONLY IF the work has the 'se:is-a-collection' metadata element, null otherwise
|
||||
|
||||
public function __construct(string $wwwFilesystemPath){
|
||||
public function __construct(?string $wwwFilesystemPath = null){
|
||||
if($wwwFilesystemPath === null){
|
||||
return;
|
||||
}
|
||||
|
||||
// First, construct a source repo path from our WWW filesystem path.
|
||||
$this->RepoFilesystemPath = str_replace(EBOOKS_DIST_PATH, '', $wwwFilesystemPath);
|
||||
$this->RepoFilesystemPath = SITE_ROOT . '/ebooks/' . str_replace('/', '_', $this->RepoFilesystemPath) . '.git';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue