1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11103] Correct the test case

Fix a bug that broke it and make sure to set the needed config/auth settings

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-10-20 21:55:58 -05:00
parent 7e6f31b51d
commit bc18e368c3
3 changed files with 30 additions and 7 deletions

View File

@@ -701,10 +701,25 @@ class phpbb_notification_manager
->extension_directory($path)
->get_classes();
unset($classes[array_search('phpbb_notification_type_interface', $classes)]);
unset($classes[array_search('phpbb_notification_type_base', $classes)]);
unset($classes[array_search('phpbb_notification_method_interface', $classes)]);
unset($classes[array_search('phpbb_notification_method_base', $classes)]);
if (array_search('phpbb_notification_type_interface', $classes) !== false)
{
unset($classes[array_search('phpbb_notification_type_interface', $classes)]);
}
if (array_search('phpbb_notification_type_base', $classes) !== false)
{
unset($classes[array_search('phpbb_notification_type_base', $classes)]);
}
if (array_search('phpbb_notification_method_interface', $classes) !== false)
{
unset($classes[array_search('phpbb_notification_method_interface', $classes)]);
}
if (array_search('phpbb_notification_method_base', $classes) !== false)
{
unset($classes[array_search('phpbb_notification_method_base', $classes)]);
}
return $classes;
}