Commit 09c01ba6 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-5074 (The same files may be in multiple addons, extract them if...

Fixed MANTIS-5074 (The same files may be in multiple addons, extract them if in ANY that are installed)
parent 27da62b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -375,7 +375,9 @@ function upgrade_script()
                                    $addon_file_path = $upgrade_file['path'];
                                    if (strpos($addon_data, '\'' . addslashes($addon_file_path) . '\'') !== false) {
                                        $found = $addon_name;
                                        if (file_exists(get_file_base() . '/sources/hooks/systems/addon_registry/' . $found . '.php')) {
                                            break;
                                        } // otherwise keep looking for an addon we have installed containing this file
                                    }
                                }
                            }