summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-10-04 09:54:02 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-10-04 12:18:05 +0100
commit081147b95980645ee0f905276120bd50aff10f67 (patch)
treeb7333db94426f20e974d91794ebdc706bfd697ae /app/Schema
parentc00af032bcec4ac69ae67ec87ad5e38535ed522b (diff)
downloadwebtrees-081147b95980645ee0f905276120bd50aff10f67.tar.gz
webtrees-081147b95980645ee0f905276120bd50aff10f67.tar.bz2
webtrees-081147b95980645ee0f905276120bd50aff10f67.zip
Code style
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Migration22.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/Schema/Migration22.php b/app/Schema/Migration22.php
index df3cb34420..8827c0330d 100644
--- a/app/Schema/Migration22.php
+++ b/app/Schema/Migration22.php
@@ -80,11 +80,7 @@ class Migration22 implements MigrationInterface
}
} else {
// Not using the media firewall - just move the public folder to the new location (if we can).
- if (
- file_exists(WT_ROOT . $_cfg->media_directory) &&
- is_dir(WT_ROOT . $_cfg->media_directory) &&
- !file_exists($WT_DATA_DIR . $_cfg->media_directory)
- ) {
+ if (is_dir(WT_ROOT . $_cfg->media_directory) && !file_exists($WT_DATA_DIR . $_cfg->media_directory)) {
try {
rename(WT_ROOT . $_cfg->media_directory, $WT_DATA_DIR . $_cfg->media_directory);
} catch (Throwable $ex) {