aboutsummaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-06 17:00:06 +0200
committerJakob Sack <kde@jakobsack.de>2011-08-06 17:00:06 +0200
commitd9ccbe96dda717712d67274c777a0e614743784f (patch)
tree89874987ef29731f346c0c443fa2264110f1b319 /lib/template.php
parent501b767e6ee10ac2e3b43f42c1c4c991b13fca0e (diff)
downloadnextcloud-server-d9ccbe96dda717712d67274c777a0e614743784f.tar.gz
nextcloud-server-d9ccbe96dda717712d67274c777a0e614743784f.zip
fix template.php ;-)
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php
index b8adba0833f..124343bd85b 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -139,12 +139,14 @@ class OC_Template{
}
// Templates have the ending .php
+ $path = $template;
$template .= "$name.php";
// Set the private data
$this->renderas = $renderas;
$this->application = $app;
$this->template = $template;
+ $this->path = $path;
$this->vars = array();
$this->l10n = new OC_L10N($app);
}
@@ -327,14 +329,13 @@ class OC_Template{
* Includes another template. use <?php echo $this->inc('template'); ?> to
* do this.
*/
- public function inc( $file )
- {
+ public function inc( $file ){
// $_ erstellen
$_ = $this->vars;
// Einbinden
ob_start();
- include( $this->path.'/'.$file.'.php' );
+ include( $this->path.$file.'.php' );
$data = ob_get_contents();
ob_end_clean();