Skip to content

Commit 9b89701

Browse files
committed
Improve message
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent b2294c6 commit 9b89701

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function checkIfThereIsAnUpdate()
8585
}
8686
if ($this->availableUpdate && isset($serverResponse['autoupdater']) && !($serverResponse['autoupdater'] === 1 || $serverResponse['autoupdater'] === '1')) {
8787
$this->availableUpdate = false;
88-
$updateMessage .= '<br />The one click updater is disabled for this update.';
88+
$updateMessage .= '<br />The automatic updater is disabled for this update.';
8989
}
9090

9191
return $updateMessage;
@@ -184,12 +184,10 @@ function checkRequiredFiles()
184184
} else {
185185
$expectedFiles[$fileName] = 1;
186186
}
187-
188187
}
189188

190189
return $expectedFiles;
191190

192-
193191
}
194192

195193
/**
@@ -463,6 +461,7 @@ function isExcluded($file)
463461
}
464462

465463
/**
464+
* Move new files in place.
466465
* @throws UpdateException
467466
*/
468467
function moveNewFiles()
@@ -486,6 +485,9 @@ function moveNewFiles()
486485
}
487486
}
488487

488+
/**
489+
* Move entry points in place.
490+
*/
489491
function moveEntryPHPpoints()
490492
{
491493
$rootDir = __DIR__ . '/../tmp_uploaded_update/phplist/public_html/lists';
@@ -560,6 +562,7 @@ function unZipFiles($toBeExtracted, $extractPath)
560562
}
561563

562564
/**
565+
* Delete temporary downloaded files
563566
* @throws UpdateException
564567
*/
565568
function deleteTemporaryFiles() {
@@ -731,7 +734,7 @@ function replaceNewUpdater() {
731734
case 3:
732735
$unexpectedFiles = $update->checkRequiredFiles();
733736
if(count($unexpectedFiles) !== 0) {
734-
$elements = "The following files are not expected or are required: \n";;
737+
$elements = "The following files are not expected or required. To continue please move or delete them. \n";;
735738
foreach ($unexpectedFiles as $key=>$fileName){
736739
$elements.=$key."\n";
737740
}

0 commit comments

Comments
 (0)