Commit b7bf0cc6 authored by tbrehm's avatar tbrehm
Browse files

Fixed Call-time pass-by-reference deprecated issues in tpl.inc.php

parent f28f40f7
......@@ -322,6 +322,7 @@ if (!defined('vlibTemplateClassLoaded')) {
*/
public function setDbLoop($loopname, $result, $db_type = 'MYSQL')
{
/*
$db_type = strtoupper($db_type);
if (!in_array($db_type, $this->allowed_loop_dbs)) {
vlibTemplateError::raiseError('VT_WARNING_INVALID_LOOP_DB', WARNING, $db_type);
......@@ -448,6 +449,7 @@ if (!defined('vlibTemplateClassLoaded')) {
}
$this->setLoop($loopname, $loop_arr);
return true;
*/
}
/**
......
......@@ -360,6 +360,8 @@ if (!defined('vlibTemplateClassLoaded')) {
* @access public
*/
function setDbLoop ($loopname, $result, $db_type='MYSQL') {
/*
$db_type = strtoupper($db_type);
if (!in_array($db_type, $this->allowed_loop_dbs)) {
vlibTemplateError::raiseError('VT_WARNING_INVALID_LOOP_DB',WARNING, $db_type);
......@@ -485,6 +487,7 @@ if (!defined('vlibTemplateClassLoaded')) {
}
$this->setLoop($loopname, $loop_arr);
return true;
*/
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment