diff --git a/inc/controller/ajax/articles/draft.php b/inc/controller/ajax/articles/draft.php index ec214a930..ed237b81b 100644 --- a/inc/controller/ajax/articles/draft.php +++ b/inc/controller/ajax/articles/draft.php @@ -40,5 +40,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/articles/editorlist.php b/inc/controller/ajax/articles/editorlist.php index ee9368645..68adc4e4c 100644 --- a/inc/controller/ajax/articles/editorlist.php +++ b/inc/controller/ajax/articles/editorlist.php @@ -231,5 +231,3 @@ protected function initObjectsShortlink() } } - -?> diff --git a/inc/controller/ajax/articles/imgupload.php b/inc/controller/ajax/articles/imgupload.php index a193eab78..5deb59142 100644 --- a/inc/controller/ajax/articles/imgupload.php +++ b/inc/controller/ajax/articles/imgupload.php @@ -61,5 +61,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/articles/listnewtweets.php b/inc/controller/ajax/articles/listnewtweets.php index f1e17889e..fe5c821f1 100644 --- a/inc/controller/ajax/articles/listnewtweets.php +++ b/inc/controller/ajax/articles/listnewtweets.php @@ -124,5 +124,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/articles/massedit.php b/inc/controller/ajax/articles/massedit.php index 159ea2ea2..0b8e6f9f0 100644 --- a/inc/controller/ajax/articles/massedit.php +++ b/inc/controller/ajax/articles/massedit.php @@ -95,5 +95,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/articles/removeeditortags.php b/inc/controller/ajax/articles/removeeditortags.php index 671bf38ce..91f211d85 100644 --- a/inc/controller/ajax/articles/removeeditortags.php +++ b/inc/controller/ajax/articles/removeeditortags.php @@ -36,5 +36,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/articles/smileys.php b/inc/controller/ajax/articles/smileys.php index d0e45ad17..1205dcd9a 100644 --- a/inc/controller/ajax/articles/smileys.php +++ b/inc/controller/ajax/articles/smileys.php @@ -51,5 +51,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/categories/massedit.php b/inc/controller/ajax/categories/massedit.php index 86b7d2973..e8680cd88 100644 --- a/inc/controller/ajax/categories/massedit.php +++ b/inc/controller/ajax/categories/massedit.php @@ -76,5 +76,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/comments/delete.php b/inc/controller/ajax/comments/delete.php index d70f639a4..3bb151157 100644 --- a/inc/controller/ajax/comments/delete.php +++ b/inc/controller/ajax/comments/delete.php @@ -61,5 +61,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/comments/lockIp.php b/inc/controller/ajax/comments/lockIp.php index 309a1a86c..7f454f6ed 100644 --- a/inc/controller/ajax/comments/lockIp.php +++ b/inc/controller/ajax/comments/lockIp.php @@ -68,5 +68,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/comments/search.php b/inc/controller/ajax/comments/search.php index c9a79c0b9..1333a01ae 100644 --- a/inc/controller/ajax/comments/search.php +++ b/inc/controller/ajax/comments/search.php @@ -111,5 +111,3 @@ public function process() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/common/autocompleteCleanup.php b/inc/controller/ajax/common/autocompleteCleanup.php index feaf4d1b2..2f840952a 100644 --- a/inc/controller/ajax/common/autocompleteCleanup.php +++ b/inc/controller/ajax/common/autocompleteCleanup.php @@ -80,5 +80,3 @@ private function hasNoArticlesAccess() : bool } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/common/cache.php b/inc/controller/ajax/common/cache.php index 5955e5d3e..26d07f5c5 100644 --- a/inc/controller/ajax/common/cache.php +++ b/inc/controller/ajax/common/cache.php @@ -109,5 +109,3 @@ private function cleanupArticles() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/common/clearTrash.php b/inc/controller/ajax/common/clearTrash.php index 9c3422511..44b08250e 100644 --- a/inc/controller/ajax/common/clearTrash.php +++ b/inc/controller/ajax/common/clearTrash.php @@ -171,5 +171,3 @@ protected function processrestoreComments() } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/installer/checkdb.php b/inc/controller/ajax/installer/checkdb.php index ce59eafd6..5bfdf41ac 100644 --- a/inc/controller/ajax/installer/checkdb.php +++ b/inc/controller/ajax/installer/checkdb.php @@ -84,5 +84,3 @@ protected function initPermissionObject(): bool } } - -?> \ No newline at end of file diff --git a/inc/controller/ajax/installer/initdb.php b/inc/controller/ajax/installer/initdb.php index c643d1fea..d5b394a74 100644 --- a/inc/controller/ajax/installer/initdb.php +++ b/inc/controller/ajax/installer/initdb.php @@ -155,5 +155,3 @@ protected function initPermissionObject(): bool } } - -?> \ No newline at end of file diff --git a/inc/migrations/v521rc1.php b/inc/migrations/v521rc1.php index 1a2c68d8a..876227381 100644 --- a/inc/migrations/v521rc1.php +++ b/inc/migrations/v521rc1.php @@ -90,10 +90,10 @@ protected function updateFileSystem(): bool { array_map(function ($f) { - if ( !file_exists($f) ) { + if ( !file_exists($f) || !is_writable($f) ) { return false; } - + return unlink($f); }, $diff);