Skip to content

Commit

Permalink
Updated installer
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed Apr 10, 2024
1 parent beee937 commit c4bde2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions system/extensions/update-available.ini
Original file line number Diff line number Diff line change
Expand Up @@ -353,16 +353,16 @@ Status: available
system/workers/googlemap.php: googlemap.php, create, update

Extension: Help
Version: 0.9.2
Version: 0.9.3
Description: Help for your website.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-help/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-help
DocumentationLanguage: en, de, sv
Published: 2024-04-09 21:40:35
Published: 2024-04-10 11:57:45
Status: available
system/extensions/help.php: help.php, create, update
system/workers/help.php: help.php, create, update
content/9-help/api-for-developers.md: api-for-developers.md, create, optional, multi-language
content/9-help/contributing-guidelines.md: contributing-guidelines.md, create, optional, multi-language
content/9-help/how-to-change-the-content.md: how-to-change-the-content.md, create, optional, multi-language
Expand Down
4 changes: 2 additions & 2 deletions system/extensions/yellow-extension.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ media/images/photo.jpg: photo.jpg, create, optional
media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional

Extension: Install
Version: 0.9.2
Version: 0.9.3
Description: Install a brand new website.
Developer: Anna Svensson
DownloadUrl: https://github.com/annaesvensson/yellow-install/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-install
DocumentationLanguage: en, de, sv
Published: 2024-04-10 10:27:08
Published: 2024-04-10 11:38:35
Status: unassembled
system/workers/install.php: install.php, create
system/workers/install-language.bin: install-language.bin, compress @source/yellow-language/, create
Expand Down
9 changes: 7 additions & 2 deletions system/workers/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Install extension, https://github.com/annaesvensson/yellow-install

class YellowInstall {
const VERSION = "0.9.2";
const VERSION = "0.9.3";
const PRIORITY = "1";
public $yellow; // access to API

Expand Down Expand Up @@ -526,7 +526,12 @@ public function getSystemSettings($skipInstallation) {
if ($this->yellow->system->get("generateStaticUrl")=="auto" && getenv("URL")!==false) $settings["generateStaticUrl"] = getenv("URL");
if ($this->yellow->system->get("generateStaticUrl")=="auto" && $skipInstallation) $settings["generateStaticUrl"] = "http://localhost:8000/";
if ($this->yellow->system->get("coreTimezone")=="UTC") $settings["coreTimezone"] = $this->yellow->toolbox->detectServerTimezone();
if ($this->yellow->system->get("updateEventPending")=="none") $settings["updateEventPending"] = "website/install";
if ($this->yellow->system->get("updateEventPending")=="none") {
$settings["updateEventPending"] = "website/install";
} else {
$themeStandard = ",".$this->yellow->system->get("theme")."/install";
$settings["updateEventPending"] = $this->yellow->system->get("updateEventPending").$themeStandard;
}
$settings["updateCurrentRelease"] = YellowCore::RELEASE;
return $settings;
}
Expand Down

0 comments on commit c4bde2a

Please sign in to comment.