mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/11150] Disable if directories not writable
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
0a809fb90e
commit
cc0a762866
@@ -642,7 +642,7 @@ class acp_extensions
|
||||
'purge_on_remove' => $this->config['exts_composer_purge_on_remove'],
|
||||
'repositories' => unserialize($this->config['exts_composer_repositories']),
|
||||
]);
|
||||
$this->template->assign_var('enabled', $this->manager->check_requirements());
|
||||
$this->template->assign_var('enabled', $manager->check_requirements());
|
||||
$this->request->disable_super_globals();
|
||||
|
||||
add_form_key('gallery_settings');
|
||||
@@ -672,12 +672,7 @@ class acp_extensions
|
||||
}
|
||||
else
|
||||
{
|
||||
$message_text = $e->getPrevious()->getMessage();
|
||||
if (strpos($message_text, 'ext/') === 0 && strpos($message_text, 'does not exist and could not be created.') !== false)
|
||||
{
|
||||
$message_text = $language->lang('EXTENSIONS_DIR_NOT_WRITABLE');
|
||||
}
|
||||
$message_text .= adm_back_link($this->u_action);
|
||||
$message_text = $e->getPrevious()->getMessage() . adm_back_link($this->u_action);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user