Skip to content

Commit

Permalink
Refactored code, maximise work not done
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed Mar 29, 2024
1 parent 44024d2 commit baa9523
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions system/extensions/update-available.ini
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,14 @@ Status: available
system/extensions/turkish.php: turkish.php, create, update

Extension: Update
Version: 0.8.99
Version: 0.8.100
Description: Keep your website up to date.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-update
DocumentationLanguage: en, de, sv
Published: 2024-03-26 22:35:01
Published: 2024-03-29 22:29:25
Status: available
system/extensions/update.php: update.php, create, update
system/extensions/updatepatch.bin: updatepatch.php, create, additional
Expand Down
4 changes: 2 additions & 2 deletions system/extensions/update-current.ini
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ system/themes/stockholm-opensans-light.woff: stockholm-opensans-light.woff, crea
system/themes/stockholm-opensans-regular.woff: stockholm-opensans-regular.woff, create, update, careful

Extension: Update
Version: 0.8.99
Version: 0.8.100
Description: Keep your website up to date.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-update
DocumentationLanguage: en, de, sv
Published: 2024-03-26 22:35:01
Published: 2024-03-29 22:29:25
Status: available
system/extensions/update.php: update.php, create, update
system/extensions/updatepatch.bin: updatepatch.php, create, additional
8 changes: 2 additions & 6 deletions system/extensions/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Update extension, https://github.com/annaesvensson/yellow-update

class YellowUpdate {
const VERSION = "0.8.99";
const VERSION = "0.8.100";
const PRIORITY = "2";
public $yellow; // access to API
public $extensions; // number of extensions
Expand Down Expand Up @@ -850,11 +850,7 @@ public function getExtensionFileNames($settings, $reverse = false) {

// Return extension root pages for content files
public function getExtensionContentRootPages() {
$rootPages = array();
foreach ($this->yellow->content->scanLocation("") as $page) {
if ($page->isAvailable() && $page->isVisible()) array_push($rootPages, $page);
}
return $rootPages;
return $this->yellow->content->scanLocation("");
}

// Return extension files names for content files
Expand Down

0 comments on commit baa9523

Please sign in to comment.