fix template.php ;-)
This commit is contained in:
parent
501b767e6e
commit
d9ccbe96dd
|
@ -139,12 +139,14 @@ class OC_Template{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Templates have the ending .php
|
// Templates have the ending .php
|
||||||
|
$path = $template;
|
||||||
$template .= "$name.php";
|
$template .= "$name.php";
|
||||||
|
|
||||||
// Set the private data
|
// Set the private data
|
||||||
$this->renderas = $renderas;
|
$this->renderas = $renderas;
|
||||||
$this->application = $app;
|
$this->application = $app;
|
||||||
$this->template = $template;
|
$this->template = $template;
|
||||||
|
$this->path = $path;
|
||||||
$this->vars = array();
|
$this->vars = array();
|
||||||
$this->l10n = new OC_L10N($app);
|
$this->l10n = new OC_L10N($app);
|
||||||
}
|
}
|
||||||
|
@ -327,14 +329,13 @@ class OC_Template{
|
||||||
* Includes another template. use <?php echo $this->inc('template'); ?> to
|
* Includes another template. use <?php echo $this->inc('template'); ?> to
|
||||||
* do this.
|
* do this.
|
||||||
*/
|
*/
|
||||||
public function inc( $file )
|
public function inc( $file ){
|
||||||
{
|
|
||||||
// $_ erstellen
|
// $_ erstellen
|
||||||
$_ = $this->vars;
|
$_ = $this->vars;
|
||||||
|
|
||||||
// Einbinden
|
// Einbinden
|
||||||
ob_start();
|
ob_start();
|
||||||
include( $this->path.'/'.$file.'.php' );
|
include( $this->path.$file.'.php' );
|
||||||
$data = ob_get_contents();
|
$data = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue