diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-01-15 18:34:12 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-15 18:34:12 +0100 |
commit | b90852485335455a3eda0e7193b40b1364156b27 (patch) | |
tree | fd64d17c425e1f077607239c14e9640bb267b037 /phpBB/phpbb | |
parent | 0178c27092762cf2ca8bf355e6f7e6eaf5cf0c3c (diff) | |
download | forums-b90852485335455a3eda0e7193b40b1364156b27.tar forums-b90852485335455a3eda0e7193b40b1364156b27.tar.gz forums-b90852485335455a3eda0e7193b40b1364156b27.tar.bz2 forums-b90852485335455a3eda0e7193b40b1364156b27.tar.xz forums-b90852485335455a3eda0e7193b40b1364156b27.zip |
[ticket/13733] Update comment explaining migration class validation
PHPBB3-13733
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/extension/base.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php index 40bd349c4d..7eead6df1d 100644 --- a/phpBB/phpbb/extension/base.php +++ b/phpBB/phpbb/extension/base.php @@ -141,14 +141,10 @@ class base implements \phpbb\extension\extension_interface if ($validate_classes) { + // Unset classes that do not exist or do not extend the + // abstract class phpbb\db\migration\migration foreach ($migrations as $key => $migration) { - // If the class exists and is a subclass of the - // \phpbb\db\migration\migration abstract class - // we skip it. - - // Otherwise, i.e. if it doesn't exist or it is - // not an extend the abstract class, we unset it if (class_exists($migration)) { $reflector = new \ReflectionClass($migration); |