mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Fix channel htaccess installation
This commit is contained in:
parent
b04208b5c3
commit
a6d68fef55
7 changed files with 70 additions and 1 deletions
|
@ -263,6 +263,12 @@ function check_config_writable()
|
|||
|| (!file_exists(AmpConfig::get('prefix') . '/config/ampache.cfg.php') && is_writeable(AmpConfig::get('prefix') . '/config/')));
|
||||
}
|
||||
|
||||
function check_htaccess_channel_writable()
|
||||
{
|
||||
return ((file_exists(AmpConfig::get('prefix') . '/channel/.htaccess') && is_writable(AmpConfig::get('prefix') . '/channel/.htaccess'))
|
||||
|| (!file_exists(AmpConfig::get('prefix') . '/channel/.htaccess') && is_writeable(AmpConfig::get('prefix') . '/channel/')));
|
||||
}
|
||||
|
||||
function check_htaccess_rest_writable()
|
||||
{
|
||||
return ((file_exists(AmpConfig::get('prefix') . '/rest/.htaccess') && is_writable(AmpConfig::get('prefix') . '/rest/.htaccess'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue