diff options
| author | David King <imkingdavid@gmail.com> | 2013-02-23 13:50:53 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2013-02-23 13:50:53 -0500 |
| commit | 0987efa18980c2cf8deb1fcb13baa1a43ae6035b (patch) | |
| tree | fc2f81b8467e9ce809f6c91b0cfb29e6592b3299 /phpBB/includes/db/migration/tool/module.php | |
| parent | 3e90082dbb3a527846b9b0c3ae6407946a530fdb (diff) | |
| parent | f6bb14569b0a777d3511b732201af9d1a415f2ed (diff) | |
| download | forums-0987efa18980c2cf8deb1fcb13baa1a43ae6035b.tar forums-0987efa18980c2cf8deb1fcb13baa1a43ae6035b.tar.gz forums-0987efa18980c2cf8deb1fcb13baa1a43ae6035b.tar.bz2 forums-0987efa18980c2cf8deb1fcb13baa1a43ae6035b.tar.xz forums-0987efa18980c2cf8deb1fcb13baa1a43ae6035b.zip | |
Merge remote-tracking branch 'EXreaction/ticket/11351' into develop
# By Nathaniel Guse (4) and Nathan Guse (1)
# Via Nathan Guse
* EXreaction/ticket/11351:
[feature/migrations] getLocalisedMessage function for migration exception
[feature/migrations] Fix unfulfillable function
[feature/migrations] getParameters function for migration exception
[feature/migrations] Add explanatory language string for migration errors
[feature/migrations] Add language strings for migrations errors
Diffstat (limited to 'phpBB/includes/db/migration/tool/module.php')
| -rw-r--r-- | phpBB/includes/db/migration/tool/module.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/db/migration/tool/module.php b/phpBB/includes/db/migration/tool/module.php index afe1f21ec5..4d7fae2bb0 100644 --- a/phpBB/includes/db/migration/tool/module.php +++ b/phpBB/includes/db/migration/tool/module.php @@ -242,14 +242,14 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac if (!$module_id) { - throw new phpbb_db_migration_exception('MODULE_PARENT_NOT_EXIST', $parent); + throw new phpbb_db_migration_exception('MODULE_NOT_EXIST', $parent); } $parent = $data['parent_id'] = $module_id; } else if (!$this->exists($class, false, $parent)) { - throw new phpbb_db_migration_exception('MODULE_PARENT_NOT_EXIST', $parent); + throw new phpbb_db_migration_exception('MODULE_NOT_EXIST', $parent); } if ($this->exists($class, $parent, $data['module_langname'])) @@ -477,7 +477,7 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac $result = $acp_modules->delete_module($module_id); if (!empty($result)) { - throw new phpbb_db_migration_exception('CANNOT_REMOVE_MODULE', $module_id); + throw new phpbb_db_migration_exception('MODULE_NOT_REMOVABLE', $module_id, $result); } } |
