aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-09 18:54:57 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-30 17:26:00 +0200
commitae6ad754a430309796e1963684b59c01739ba4dd (patch)
treefff362c619d0cddb7ec42b6cb8d813d3cd38b69d
parent2dc19cec9d3cb0c1e9ab8ef0afd7515f4bb7cee1 (diff)
downloadforums-ae6ad754a430309796e1963684b59c01739ba4dd.tar
forums-ae6ad754a430309796e1963684b59c01739ba4dd.tar.gz
forums-ae6ad754a430309796e1963684b59c01739ba4dd.tar.bz2
forums-ae6ad754a430309796e1963684b59c01739ba4dd.tar.xz
forums-ae6ad754a430309796e1963684b59c01739ba4dd.zip
[ticket/13803] Moved the add_missing_fields() call to the base class
PHPBB3-13803
-rw-r--r--phpBB/phpbb/textreparser/base.php1
-rw-r--r--phpBB/phpbb/textreparser/row_based_plugin.php5
2 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/textreparser/base.php b/phpBB/phpbb/textreparser/base.php
index 85327cdfce..47ac177e05 100644
--- a/phpBB/phpbb/textreparser/base.php
+++ b/phpBB/phpbb/textreparser/base.php
@@ -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(
diff --git a/phpBB/phpbb/textreparser/row_based_plugin.php b/phpBB/phpbb/textreparser/row_based_plugin.php
index e39ec4d5d3..6b63ffeeaf 100644
--- a/phpBB/phpbb/textreparser/row_based_plugin.php
+++ b/phpBB/phpbb/textreparser/row_based_plugin.php
@@ -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;