Skip to content

Commit 3ff1926

Browse files
committed
Fix effectively installed test
1 parent e538b51 commit 3ff1926

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

migrations/m11_reparse_old_ideas.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212

1313
class m11_reparse_old_ideas extends \phpbb\db\migration\container_aware_migration
1414
{
15-
/**
16-
* {@inheritDoc}
17-
*/
18-
public function effectively_installed()
19-
{
20-
return $this->config->offsetExists('phpbb.ideas.text_reparser.clean_old_ideas');
21-
}
22-
2315
/**
2416
* {@inheritDoc}
2517
*/
@@ -34,6 +26,17 @@ public static function depends_on()
3426
];
3527
}
3628

29+
/**
30+
* {@inheritDoc}
31+
*/
32+
public function effectively_installed()
33+
{
34+
/** @var \phpbb\textreparser\manager $reparser_manager */
35+
$reparser_manager = $this->container->get('text_reparser.manager');
36+
37+
return !empty($reparser_manager->get_resume_data('phpbb.ideas.text_reparser.clean_old_ideas'));
38+
}
39+
3740
/**
3841
* @inheritDoc
3942
*/

0 commit comments

Comments
 (0)