aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-26 12:18:39 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-26 12:18:39 +0200
commit8d93eefea87bd36904fcb1daabc239361dd95a27 (patch)
tree9ea366b179e9db879109e05c560e797ad763d0d3 /include/template_processor.php
parentae024edbf9d9210126902b241bf9b7d2dbece1ec (diff)
downloadvolse-hubzilla-8d93eefea87bd36904fcb1daabc239361dd95a27.tar.gz
volse-hubzilla-8d93eefea87bd36904fcb1daabc239361dd95a27.tar.bz2
volse-hubzilla-8d93eefea87bd36904fcb1daabc239361dd95a27.zip
remove global $lang var in templates. can't work as intended
Diffstat (limited to 'include/template_processor.php')
-rw-r--r--include/template_processor.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/include/template_processor.php b/include/template_processor.php
index d04da8c61..63d75eaa4 100644
--- a/include/template_processor.php
+++ b/include/template_processor.php
@@ -160,25 +160,8 @@
return $s;
}
- private function _get_lang(){
- if ($this->lang!=null) return $this->lang;
-
- $a = get_app();
- $this->lang=array();
- if(is_array($a->strings) && count($a->strings)) {
- foreach ($a->strings as $k=>$v){
- $k = preg_replace("/[^a-z0-9-]/", "", str_replace(" ","-", strtolower($k)));
- $this->lang[$k] = $v;
- }
- }
- return $this->lang;
- }
-
-
+
public function replace($s, $r) {
- if (!x($r,'$lang')){
- $r['$lang'] = &$this->_get_lang();
- }
$this->r = $r;
$this->search = array();
$this->replace = array();