some workaround for PHP warnings

This commit is contained in:
following
2013-02-08 14:13:25 +01:00
parent 4b0a5da369
commit 57d665592b
2 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ class OcSmarty extends Smarty
$this->_cache_including = $_cache_including;
}
function display()
function display($dummy1=null, $dummy2=null, $dummy3=null)
{
global $opt, $db, $cookie, $login, $menu, $sqldebugger, $translate;
$cookie->close();
@@ -303,7 +303,7 @@ class OcSmarty extends Smarty
}
// check if this template is valid
function is_cached()
function is_cached($dummy1=null, $dummy2=null, $dummy3=null)
{
global $login;

View File

@@ -105,7 +105,7 @@ class useroptions
$this->nOptions[$pId]['option_value'] = $pValue;
return true;
}
else if (ereg($this->nOptions[$pId]['check_regex'], $pValue) || strlen($pValue) == 0)
else if (preg_match("/" . $this->nOptions[$pId]['check_regex'] . "/", $pValue) || strlen($pValue) == 0)
{
$this->nOptions[$pId]['option_value'] = $pValue;
return true;
@@ -128,7 +128,7 @@ class useroptions
function tidy_html_description($text)
{
$options = array("input-encoding" => "utf8", "output-encoding" => "utf8", "output-xhtml" => true, "doctype" => "omit", "show-body-only" => true, "char-encoding" => "utf8", "quote-ampersand" => true, "quote-nbsp" => true, "wrap" => 0);
$options = array("input-encoding" => "utf8", "output-encoding" => "utf8", "output-xhtml" => true, "doctype" => "omit", "show-body-only" => true, "char-encoding" => "utf8", "quote-ampersand" => true, "quote-nbsp" => true, "wrap" => 0);
$config = HTMLPurifier_Config::createDefault();
$cssDefinition = $config->getCSSDefinition();