Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try to fix checks
Signed-off-by: szaimen <[email protected]>
  • Loading branch information
szaimen committed Nov 14, 2022
commit 163f36257476d0643f881522e5fc25e70a9e5e09
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