|
|
@ -30,6 +30,7 @@ class OC_Template extends \OC\Template\Base { |
|
|
|
private $renderas; // Create a full page? |
|
|
|
private $renderas; // Create a full page? |
|
|
|
private $path; // The path to the template |
|
|
|
private $path; // The path to the template |
|
|
|
private $headers=array(); //custom headers |
|
|
|
private $headers=array(); //custom headers |
|
|
|
|
|
|
|
protected $app; // app id |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @brief Constructor |
|
|
|
* @brief Constructor |
|
|
@ -62,6 +63,7 @@ class OC_Template extends \OC\Template\Base { |
|
|
|
// Set the private data |
|
|
|
// Set the private data |
|
|
|
$this->renderas = $renderas; |
|
|
|
$this->renderas = $renderas; |
|
|
|
$this->path = $path; |
|
|
|
$this->path = $path; |
|
|
|
|
|
|
|
$this->app = $app; |
|
|
|
|
|
|
|
|
|
|
|
parent::__construct($template, $requesttoken, $l10n, $themeDefaults); |
|
|
|
parent::__construct($template, $requesttoken, $l10n, $themeDefaults); |
|
|
|
} |
|
|
|
} |
|
|
@ -172,7 +174,7 @@ class OC_Template extends \OC\Template\Base { |
|
|
|
$data = parent::fetchPage(); |
|
|
|
$data = parent::fetchPage(); |
|
|
|
|
|
|
|
|
|
|
|
if( $this->renderas ) { |
|
|
|
if( $this->renderas ) { |
|
|
|
$page = new OC_TemplateLayout($this->renderas); |
|
|
|
$page = new OC_TemplateLayout($this->renderas, $this->app); |
|
|
|
|
|
|
|
|
|
|
|
// Add custom headers |
|
|
|
// Add custom headers |
|
|
|
$page->assign('headers', $this->headers, false); |
|
|
|
$page->assign('headers', $this->headers, false); |
|
|
|