mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[ticket/13803] Moved the add_missing_fields() call to the base class
PHPBB3-13803
This commit is contained in:
parent
2dc19cec9d
commit
ae6ad754a4
@ -174,6 +174,7 @@ abstract class base implements reparser_interface
|
||||
*/
|
||||
protected function reparse_record(array $record)
|
||||
{
|
||||
$record = $this->add_missing_fields($record);
|
||||
$unparsed = array_merge(
|
||||
$record,
|
||||
generate_text_for_edit(
|
||||
|
@ -65,10 +65,7 @@ abstract class row_based_plugin extends base
|
||||
protected function get_records($min_id, $max_id)
|
||||
{
|
||||
$result = $this->db->sql_query($this->get_records_query($min_id, $max_id));
|
||||
while ($row = $this->db->sql_fetchrow($result))
|
||||
{
|
||||
$records[] = $this->add_missing_fields($row);
|
||||
}
|
||||
$records = $this->db->sql_fetchrowset($result);
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
return $records;
|
||||
|
Loading…
x
Reference in New Issue
Block a user