summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-06-19 14:27:52 +0200
committerJakob Sack <kde@jakobsack.de>2011-06-19 14:27:52 +0200
commitbaa00a589f7d4cdf920e5fb8185082e19bc179d1 (patch)
tree1bb24f2340c17d2982504d58e17efa3ec697cd83 /lib/template.php
parent6a19a7d22639f056ccb39d94f2358882ed875faf (diff)
downloadnextcloud-server-baa00a589f7d4cdf920e5fb8185082e19bc179d1.tar.gz
nextcloud-server-baa00a589f7d4cdf920e5fb8185082e19bc179d1.zip
l10n added
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/template.php b/lib/template.php
index 93adc35eca7..6b9a1c38e11 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -73,8 +73,9 @@ function human_file_size( $bytes ){
class OC_TEMPLATE{
private $renderas; // Create a full page?
private $application; // template Application
- private $vars; // The smarty object
- private $template; // The smarty object
+ private $vars; // Vars
+ private $template; // The path to the template
+ private $l10n; // The l10n-Object
/**
* @brief Constructor
@@ -113,6 +114,7 @@ class OC_TEMPLATE{
$this->application = $app;
$this->template = $template;
$this->vars = array();
+ $this->l10n = new OC_L10N($app);
}
/**
@@ -251,6 +253,7 @@ class OC_TEMPLATE{
private function _fetch(){
// Register the variables
$_ = $this->vars;
+ $l = $this->l10n;
// Execute the template
ob_start();