diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-09-25 17:48:37 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-09-25 17:48:37 +0200 |
commit | e41819e37a8b25121e20ecde6435deeb58155688 (patch) | |
tree | fa7a8810a83b08dc1c19ccb48c6503be170d7fd6 | |
parent | 4069cdd51874e9b67a83a9bf9f643554394f19d3 (diff) | |
download | forums-e41819e37a8b25121e20ecde6435deeb58155688.tar forums-e41819e37a8b25121e20ecde6435deeb58155688.tar.gz forums-e41819e37a8b25121e20ecde6435deeb58155688.tar.bz2 forums-e41819e37a8b25121e20ecde6435deeb58155688.tar.xz forums-e41819e37a8b25121e20ecde6435deeb58155688.zip |
[ticket/15379] Only initialize reparsers on first call in migration
PHPBB3-15379
-rw-r--r-- | phpBB/phpbb/db/migration/data/v320/text_reparser.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/phpBB/phpbb/db/migration/data/v320/text_reparser.php b/phpBB/phpbb/db/migration/data/v320/text_reparser.php index 03c5d39fe4..6b8cf93cc9 100644 --- a/phpBB/phpbb/db/migration/data/v320/text_reparser.php +++ b/phpBB/phpbb/db/migration/data/v320/text_reparser.php @@ -54,13 +54,16 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration /** @var manager $reparser_manager */ $reparser_manager = $this->container->get('text_reparser.manager'); - /** @var reparser_interface[] $reparsers */ - $reparsers = $this->container->get('text_reparser_collection'); - - // Initialize all reparsers - foreach ($reparsers as $name => $reparser) + if (!is_array($resume_data)) { - $reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100); + /** @var reparser_interface[] $reparsers */ + $reparsers = $this->container->get('text_reparser_collection'); + + // Initialize all reparsers + foreach ($reparsers as $name => $reparser) + { + $reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100); + } } // Sometimes a cron job is too much |