Skip to content

Commit

Permalink
try to fix checks
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Nov 14, 2022
1 parent 9cc0541 commit 163f362
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*
*/

use Composer\Semver\Semver;

class UpdateException extends \Exception {
protected $data;

Expand Down Expand Up @@ -53,6 +51,7 @@ public function accept(): bool {
}
}

use Composer\Semver\Semver;

class Updater {
/** @var string */
Expand Down Expand Up @@ -170,8 +169,8 @@ public function checkForUpdate() {
if ($version !== '' && $version !== $this->currentVersion) {
if (PHP_INT_SIZE < 8 && Semver::satisfies($version, '> 25')) {
$this->updateAvailable = false;

$updateText .= '<br />You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.';
$updateText = '<br />You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.';
return $updateText;
}
$this->updateAvailable = true;
$releaseChannel = $this->getCurrentReleaseChannel();
Expand Down
4 changes: 2 additions & 2 deletions lib/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public function checkForUpdate() {
if ($version !== '' && $version !== $this->currentVersion) {
if (PHP_INT_SIZE < 8 && Semver::satisfies($version, '> 25')) {
$this->updateAvailable = false;

$updateText .= '<br />You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.';
$updateText = '<br />You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.';
return $updateText;
}
$this->updateAvailable = true;
$releaseChannel = $this->getCurrentReleaseChannel();
Expand Down

0 comments on commit 163f362

Please sign in to comment.