Skip to content

Commit

Permalink
some workaround for PHP warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
following committed Feb 8, 2013
1 parent 4b0a5da commit 57d6655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/lib2/OcSmarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function compile($resource_name, $compile_id = null)
$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();
Expand Down Expand Up @@ -303,7 +303,7 @@ function error($id)
}

// check if this template is valid
function is_cached()
function is_cached($dummy1=null, $dummy2=null, $dummy3=null)
{
global $login;

Expand Down
4 changes: 2 additions & 2 deletions htdocs/lib2/logic/useroptions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function setOptValue($pId, $pValue)
$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;
Expand All @@ -128,7 +128,7 @@ function save()

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();

Expand Down

0 comments on commit 57d6655

Please sign in to comment.