mirror of
https://github.com/friendica/friendica
synced 2024-12-23 20:00:16 +00:00
Initialize class members in App\Page
- Addresses https://github.com/friendica/friendica/issues/7676#issuecomment-559680658
This commit is contained in:
parent
0191f5242b
commit
25194b58b8
1 changed files with 14 additions and 16 deletions
|
@ -30,15 +30,26 @@ class Page implements ArrayAccess
|
||||||
/**
|
/**
|
||||||
* @var array Contains all stylesheets, which should get loaded during page
|
* @var array Contains all stylesheets, which should get loaded during page
|
||||||
*/
|
*/
|
||||||
private $stylesheets;
|
private $stylesheets = [];
|
||||||
/**
|
/**
|
||||||
* @var array Contains all scripts, which are added to the footer at last
|
* @var array Contains all scripts, which are added to the footer at last
|
||||||
*/
|
*/
|
||||||
private $footerScripts;
|
private $footerScripts = [];
|
||||||
/**
|
/**
|
||||||
* @var array The page content, which are showed directly
|
* @var array The page content, which are showed directly
|
||||||
*/
|
*/
|
||||||
private $page;
|
private $page = [
|
||||||
|
'aside' => '',
|
||||||
|
'bottom' => '',
|
||||||
|
'content' => '',
|
||||||
|
'footer' => '',
|
||||||
|
'htmlhead' => '',
|
||||||
|
'nav' => '',
|
||||||
|
'page_title' => '',
|
||||||
|
'right_aside' => '',
|
||||||
|
'template' => '',
|
||||||
|
'title' => '',
|
||||||
|
];
|
||||||
/**
|
/**
|
||||||
* @var string The basepath of the page
|
* @var string The basepath of the page
|
||||||
*/
|
*/
|
||||||
|
@ -50,19 +61,6 @@ class Page implements ArrayAccess
|
||||||
public function __construct(string $basepath)
|
public function __construct(string $basepath)
|
||||||
{
|
{
|
||||||
$this->basePath = $basepath;
|
$this->basePath = $basepath;
|
||||||
|
|
||||||
$this->page = [
|
|
||||||
'aside' => '',
|
|
||||||
'bottom' => '',
|
|
||||||
'content' => '',
|
|
||||||
'footer' => '',
|
|
||||||
'htmlhead' => '',
|
|
||||||
'nav' => '',
|
|
||||||
'page_title' => '',
|
|
||||||
'right_aside' => '',
|
|
||||||
'template' => '',
|
|
||||||
'title' => ''
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue