1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-19 23:32:02 +02:00

[ticket/14262] Add error handling and small CS fixes

PHPBB3-14262
This commit is contained in:
Mate Bartus 2016-02-02 16:09:40 +01:00
parent a3f16c1f5f
commit 91f809dc3d
3 changed files with 18 additions and 8 deletions

View File

@ -6,6 +6,14 @@
<p>{ERROR_MSG}</p>
</div>
<!-- ENDIF -->
<!-- IF .errors -->
<div id="error-container">
<!-- BEGIN errors -->
<strong>{errors.TITLE}</strong>
<!-- IF errors.DESCRIPTION --><p>{errors.DESCRIPTION}</p><!-- ENDIF -->
<!-- END errors -->
</div>
<!-- ENDIF -->
<!-- IF BODY --><p>{BODY}</p><!-- ENDIF -->
<!-- IF CONTENT -->{CONTENT}<!-- ENDIF -->
<!-- IF S_CONV_IN_PROGRESS -->

View File

@ -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;
}
}

View File

@ -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,
));
}
}