mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 23:04:26 +02:00
Move delimiter props and functions
move left and right delimiter functions and properties to Render class.
This commit is contained in:
parent
93ccd7bcdb
commit
3f74ba88c2
3 changed files with 44 additions and 42 deletions
40
src/App.php
40
src/App.php
|
@ -162,14 +162,6 @@ class App
|
|||
public $template_engine_instance = [];
|
||||
public $process_id;
|
||||
public $queue;
|
||||
private $ldelim = [
|
||||
'internal' => '',
|
||||
'smarty3' => '{{'
|
||||
];
|
||||
private $rdelim = [
|
||||
'internal' => '',
|
||||
'smarty3' => '}}'
|
||||
];
|
||||
private $scheme;
|
||||
private $hostname;
|
||||
|
||||
|
@ -924,38 +916,6 @@ class App
|
|||
$this->theme['template_engine'] = $engine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the right delimiter for a template engine
|
||||
*
|
||||
* Currently:
|
||||
* Internal = ''
|
||||
* Smarty3 = '{{'
|
||||
*
|
||||
* @param string $engine The template engine (default is Smarty3)
|
||||
*
|
||||
* @return string the right delimiter
|
||||
*/
|
||||
public function getTemplateLeftDelimiter($engine = 'smarty3')
|
||||
{
|
||||
return $this->ldelim[$engine];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the left delimiter for a template engine
|
||||
*
|
||||
* Currently:
|
||||
* Internal = ''
|
||||
* Smarty3 = '}}'
|
||||
*
|
||||
* @param string $engine The template engine (default is Smarty3)
|
||||
*
|
||||
* @return string the left delimiter
|
||||
*/
|
||||
public function getTemplateRightDelimiter($engine = 'smarty3')
|
||||
{
|
||||
return $this->rdelim[$engine];
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves a timestamp for a value - f.e. a call
|
||||
* Necessary for profiling Friendica
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue