[ticket/416] Only allow adding module more than once on proper modules

B3P-416
This commit is contained in:
Marc Alexander
2014-12-02 17:50:23 +01:00
parent 4bfd4212f4
commit 7dabf61f6b
8 changed files with 54 additions and 7 deletions

View File

@@ -95,9 +95,16 @@ interface module_interface
* Executes any additional commands for uninstalling the module
*
* @param int $module_id Module's ID
* @param \phpbb\db\driver $db phpBB dbal driver
* @param \phpbb\db\driver\driver_interface $db phpBB dbal driver
*
* @return bool True if uninstall was successful, false if not
*/
public function uninstall($module_id, $db);
/**
* Whether module can be included more than once
*
* @return bool True if module can be included more than once, false if not
*/
public function can_multi_include();
}