From 13a9e38d5d2686f13217e83e77ca6daebf475aae Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 27 Dec 2017 09:15:08 +0100 Subject: [PATCH] Fix header_extra_content.txt creation file see BT#13757 --- plugin/nosearchindex/plugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/nosearchindex/plugin.php b/plugin/nosearchindex/plugin.php index 1c68dacf40..af4fa00138 100644 --- a/plugin/nosearchindex/plugin.php +++ b/plugin/nosearchindex/plugin.php @@ -37,7 +37,7 @@ if ($isPlatformAdmin) { ); } - if (!file_exists($extraContentFile) && is_writable($extraContentFile)) { + if (!file_exists($extraContentFile)) { file_put_contents($extraContentFile, ''); } @@ -73,9 +73,6 @@ if ($isPlatformAdmin) { } } } else { - /*Display::addFlash( - Display::return_message($plugin->get_lang('CheckTheWritingPermissionsOfRobotsFile'), 'warning') - );*/ api_delete_settings_params( [ 'category = ? AND access_url = ? AND subkey = ? AND type = ? and variable = ?' => [