mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 13:44:12 +02:00
[ticket/14262] Add error handling and small CS fixes
PHPBB3-14262
This commit is contained in:
@@ -53,8 +53,8 @@ class convert
|
||||
|
||||
var $p_master;
|
||||
|
||||
function convert(&$p_master)
|
||||
function convert($p_master)
|
||||
{
|
||||
$this->p_master = &$p_master;
|
||||
$this->p_master = $p_master;
|
||||
}
|
||||
}
|
||||
|
@@ -1591,9 +1591,10 @@ class convertor
|
||||
*/
|
||||
public function error($error, $line, $file, $skip = false)
|
||||
{
|
||||
//
|
||||
// @todo
|
||||
//
|
||||
$this->template->assign_block_vars('errors', array(
|
||||
'TITLE' => $error,
|
||||
'DESCRIPTION' => 'In ' . $file . ' on line ' . $line,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1609,8 +1610,9 @@ class convertor
|
||||
*/
|
||||
public function db_error($error, $sql, $line, $file, $skip = false)
|
||||
{
|
||||
//
|
||||
// @todo
|
||||
//
|
||||
$this->template->assign_block_vars('errors', array(
|
||||
'TITLE' => $error,
|
||||
'DESCRIPTION' => 'In ' . $file . ' on line ' . $line . '<br /><br /><strong>SQL:</strong> ' . $sql,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user