mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Provide a way to disable the config write check and rename the ACP style editor disable constant
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9056 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
33a0bb1edf
commit
2b477bad8f
2 changed files with 2 additions and 2 deletions
|
@ -485,7 +485,7 @@ class acp_main
|
||||||
$template->assign_var('S_REMOVE_INSTALL', true);
|
$template->assign_var('S_REMOVE_INSTALL', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($phpbb_root_path . 'config.' . $phpEx) && is_writable($phpbb_root_path . 'config.' . $phpEx))
|
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($phpbb_root_path . 'config.' . $phpEx) && is_writable($phpbb_root_path . 'config.' . $phpEx))
|
||||||
{
|
{
|
||||||
// World-Writable? (000x)
|
// World-Writable? (000x)
|
||||||
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002));
|
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002));
|
||||||
|
|
|
@ -679,7 +679,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx, $config, $db, $cache, $user, $template, $safe_mode;
|
global $phpbb_root_path, $phpEx, $config, $db, $cache, $user, $template, $safe_mode;
|
||||||
|
|
||||||
if (defined('DISABLE_ACP_EDITOR'))
|
if (defined('PHPBB_DISABLE_ACP_EDITOR'))
|
||||||
{
|
{
|
||||||
trigger_error($user->lang['EDITOR_DISABLED'] . adm_back_link($this->u_action));
|
trigger_error($user->lang['EDITOR_DISABLED'] . adm_back_link($this->u_action));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue