@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | // Backup of config/elasticsearch.php if exists |
232 | 232 | if (file_exists(PMF_ROOT_DIR.'/config/elasticsearch.php')) { |
233 | 233 | if (!copy(PMF_ROOT_DIR.'/config/elasticsearch.php', PMF_ROOT_DIR.'/config/elasticsearch.bak.php')) { |
234 | - echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ' . |
|
234 | + echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file '. |
|
235 | 235 | '../config/elasticsearch.bak.php could not be written. Please correct this!</p>'; |
236 | 236 | } else { |
237 | 237 | $checkElasticsearchSetupFile = true; |
@@ -599,7 +599,7 @@ discard block |
||
599 | 599 | foreach ($query as $key => $executeQuery) { |
600 | 600 | $result = $faqConfig->getDb()->query($executeQuery); |
601 | 601 | echo '.'; |
602 | - if (!($key % 100)) { |
|
602 | + if (!($key%100)) { |
|
603 | 603 | echo '<br />'; |
604 | 604 | } |
605 | 605 | if (!$result) { |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | } |
620 | 620 | usleep(10000); |
621 | 621 | ++$count; |
622 | - if (!($count % 10)) { |
|
622 | + if (!($count%10)) { |
|
623 | 623 | ob_flush(); |
624 | 624 | } |
625 | 625 | } |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | $faqConfig->add('main.enableGzipCompression', 'true'); |
714 | 714 | |
715 | 715 | if ('sqlite3' === $DB['type']) { |
716 | - $query[] = 'ALTER TABLE ' . $prefix . 'faquser ADD COLUMN success INT(1) NULL DEFAULT 1'; |
|
716 | + $query[] = 'ALTER TABLE '.$prefix.'faquser ADD COLUMN success INT(1) NULL DEFAULT 1'; |
|
717 | 717 | } elseif ('pgsql' === $DB['type']) { |
718 | 718 | $query[] = 'ALTER TABLE '.$prefix.'faquser ADD success SMALLINT NULL DEFAULT 1'; |
719 | 719 | } else { |