aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/libs/SmartyBC.class.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-06 14:22:55 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-06 14:22:55 -0800
commita88ec1b1af954a447a666d3ff66b1d1df0a645db (patch)
tree7ccfe6a03923ad118910202e21a605e13127192c /library/Smarty/libs/SmartyBC.class.php
parent553b3a5c6c2ba6b93ad1193ec044ee92cf7690aa (diff)
parenta6cb25020bb5200cc3c00ecc941ddb751644fbcc (diff)
downloadvolse-hubzilla-a88ec1b1af954a447a666d3ff66b1d1df0a645db.tar.gz
volse-hubzilla-a88ec1b1af954a447a666d3ff66b1d1df0a645db.tar.bz2
volse-hubzilla-a88ec1b1af954a447a666d3ff66b1d1df0a645db.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'library/Smarty/libs/SmartyBC.class.php')
-rw-r--r--library/Smarty/libs/SmartyBC.class.php34
1 files changed, 11 insertions, 23 deletions
diff --git a/library/Smarty/libs/SmartyBC.class.php b/library/Smarty/libs/SmartyBC.class.php
index cec946746..1dd529c9c 100644
--- a/library/Smarty/libs/SmartyBC.class.php
+++ b/library/Smarty/libs/SmartyBC.class.php
@@ -45,6 +45,13 @@ class SmartyBC extends Smarty
public $_version = self::SMARTY_VERSION;
/**
+ * This is an array of directories where trusted php scripts reside.
+ *
+ * @var array
+ */
+ public $trusted_dir = array();
+
+ /**
* Initialize new SmartyBC object
*
* @param array $options options to set during initialization, e.g. array( 'forceCompile' => false )
@@ -52,8 +59,6 @@ class SmartyBC extends Smarty
public function __construct(array $options = array())
{
parent::__construct($options);
- // register {php} tag
- $this->registerPlugin('block', 'php', 'smarty_php_tag');
}
/**
@@ -115,10 +120,10 @@ class SmartyBC extends Smarty
/**
* Registers object to be used in templates
*
- * @param string $object name of template object
- * @param object $object_impl the referenced PHP object to register
- * @param array $allowed list of allowed methods (empty = all)
- * @param boolean $smarty_args smarty argument format, else traditional
+ * @param string $object name of template object
+ * @param object $object_impl the referenced PHP object to register
+ * @param array $allowed list of allowed methods (empty = all)
+ * @param boolean $smarty_args smarty argument format, else traditional
* @param array $block_methods list of methods that are block format
*
* @throws SmartyException
@@ -448,20 +453,3 @@ class SmartyBC extends Smarty
trigger_error("Smarty error: $error_msg", $error_type);
}
}
-
-/**
- * Smarty {php}{/php} block function
- *
- * @param array $params parameter list
- * @param string $content contents of the block
- * @param object $template template object
- * @param boolean &$repeat repeat flag
- *
- * @return string content re-formatted
- */
-function smarty_php_tag($params, $content, $template, &$repeat)
-{
- eval($content);
-
- return '';
-}