commit 26f2e4a393f9fe251085e71c4f321ffd6f13c06d
parent 1ae0fba31ba459fcb7667291dbb38e8dad61d2ff
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date: Fri, 12 Jun 2026 22:48:56 +0200
Fix the lack of html extension
Diffstat:
14 files changed, 84 insertions(+), 63 deletions(-)
diff --git a/.build.yml b/.build.yml
@@ -12,7 +12,7 @@ environment:
tasks:
- package: |
cd $site
- php85 yellow.php generate
+ ./generate.sh php85
tar -C public -cvz . > ../site.tar.gz
- upload: |
hut pages publish -d $site site.tar.gz
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,2 @@
+public/
+system/trash/
diff --git a/generate.sh b/generate.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+[ -n "$1" ] && PHP="$1" || PHP=php
+$PHP yellow.php generate
+
+cd public
+for file in $(grep -Rl '<!DOCTYPE html>' | grep -v '.html$'); do
+ mv $file $file.html
+ for file2 in $(grep -Rl 'href="/'"$file"'"'); do
+ sed 's@href="/'"$file"'"@href="/'"$file"'.html"@g' "$file2" > "$file2.tmp"
+ mv "$file2.tmp" "$file2"
+ done
+done
+cd ..
diff --git a/system/extensions/update-available.ini b/system/extensions/update-available.ini
@@ -121,14 +121,14 @@ Status: available
system/workers/chinese.php: chinese.php, create, update
Extension: Contact
-Version: 0.9.1
+Version: 0.9.3
Description: Email contact page.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-contact/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-contact
DocumentationLanguage: en, de, sv
-Published: 2024-04-05 00:15:27
+Published: 2026-03-05 22:56:24
Status: available
system/workers/contact.php: contact.php, create, update
system/layouts/contact.html: contact.html, create, update, careful
@@ -149,14 +149,14 @@ system/themes/copenhagen.css: copenhagen.css, create, update, careful
system/themes/copenhagen.png: copenhagen.png, create
Extension: Core
-Version: 0.9.22
+Version: 0.9.26
Description: Core functionality of your website.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-core
DocumentationLanguage: en, de, sv
-Published: 2026-02-21 19:43:11
+Published: 2026-03-20 10:32:34
Status: available
system/workers/core.php: core.php, create, update
system/extensions/core.php: corepatch.txt, update
@@ -213,14 +213,14 @@ Status: available
system/workers/dutch.php: dutch.php, create, update
Extension: Edit
-Version: 0.9.15
+Version: 0.9.18
Description: Edit your website in a web browser.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-edit/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-edit
DocumentationLanguage: en, de, sv
-Published: 2026-02-17 16:02:00
+Published: 2026-03-08 17:22:23
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
@@ -624,14 +624,14 @@ Status: available
system/workers/russian.php: russian.php, create, update
Extension: Search
-Version: 0.9.2
+Version: 0.9.3
Description: Full-text search.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-search/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-search
DocumentationLanguage: en, de, sv
-Published: 2024-04-25 13:09:04
+Published: 2026-03-03 23:09:33
Status: available
system/workers/search.php: search.php, create, update
system/layouts/search.html: search.html, create, update, careful
@@ -764,14 +764,14 @@ Status: available
system/workers/turkish.php: turkish.php, create, update
Extension: Update
-Version: 0.9.9
+Version: 0.9.10
Description: Keep your extensions 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: 2026-02-17 16:14:10
+Published: 2026-03-05 23:06:13
Status: available
system/workers/update.php: update.php, create, update
system/workers/updatepatch.bin: updatepatch.php, create, additional
diff --git a/system/extensions/update-installed.ini b/system/extensions/update-installed.ini
@@ -19,14 +19,14 @@ content/3-blog/2020-04-07-blog-example-page.md: 2020-04-07-blog-example-page.md,
content/3-blog/2020-12-06-made-for-people.md: 2020-12-06-made-for-people.md, create, optional
Extension: Core
-Version: 0.9.22
+Version: 0.9.26
Description: Core functionality of your website.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-core
DocumentationLanguage: en, de, sv
-Published: 2026-02-21 19:43:11
+Published: 2026-03-20 10:32:34
Status: available
system/workers/core.php: core.php, create, update
system/extensions/core.php: corepatch.txt, update
@@ -38,14 +38,14 @@ system/layouts/navigation.html: navigation.html, create, update, careful
system/layouts/pagination.html: pagination.html, create, update, careful
Extension: Edit
-Version: 0.9.15
+Version: 0.9.18
Description: Edit your website in a web browser.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-edit/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-edit
DocumentationLanguage: en, de, sv
-Published: 2026-02-17 16:02:00
+Published: 2026-03-08 17:22:23
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
@@ -164,14 +164,14 @@ Tag: language
system/extensions/swedish.php: swedish.php, create, update
Extension: Update
-Version: 0.9.9
+Version: 0.9.10
Description: Keep your extensions 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: 2026-02-17 16:14:10
+Published: 2026-03-05 23:06:13
Status: available
system/workers/update.php: update.php, create, update
system/workers/updatepatch.bin: updatepatch.php, create, additional
diff --git a/system/extensions/yellow-language.ini b/system/extensions/yellow-language.ini
@@ -188,7 +188,6 @@ UpdateExtensionDefaultDescription: No description available.
UpdateExtensionDeveloper: Developed by @x.
UpdateExtensionDesigner: Designed by @x.
UpdateExtensionTranslator: Translated by @x.
-EditToolbarNotice: Notice
FrenchDescription: French language.
GermanDescription: German language.
SwedishDescription: Swedish language.
diff --git a/system/extensions/yellow-system.ini b/system/extensions/yellow-system.ini
@@ -3,6 +3,7 @@
Sitename: MₗKᵁLᴵ.Cz
Author: Ashymad
Email: szymon.mikulicz@posteo.net
+From: noreply
Language: en
Layout: default
Theme: stockholm
@@ -29,14 +30,13 @@ UpdateAvailableFile: update-available.ini
UpdateInstalledFile: update-installed.ini
UpdateExtensionFile: extension.ini
UpdateEventPending: none
-UpdateEventDaily: 1772582451
+UpdateEventDaily: 1781308851
UpdateTrashTimeout: 7776660
BlogStartLocation: /write/
BlogNewLocation: @date-@title
BlogFilePrefix: 1
BlogShortcutEntries: 0
BlogPaginationLimit: 5
-EditSiteEmail: noreply
EditLocation: /edit/
EditUploadNewLocation: /media/@group/@filename
EditUploadExtensions: .gif, .jpg, .mp3, .ogg, .pdf, .png, .svg, .zip
@@ -63,10 +63,5 @@ ImageThumbnailJpegQuality: 80
ImageJpegExtension: auto
PreviousnextPagePrevious: 1
PreviousnextPageNext: 1
-CoreExtensionLocation: /media/extensions/
-CoreThemeLocation: /media/themes/
-UpdateLatestUrl: auto
-UpdateLatestFile: update-latest.ini
-UpdateCurrentFile: update-current.ini
ImageUploadJpgQuality: 80
ImageThumbnailJpgQuality: 80
diff --git a/system/extensions/yellow-website.log b/system/extensions/yellow-website.log
@@ -1,3 +1,8 @@
+2020-06-23 20:58:29 info Datenstrom Yellow 0.8.12, PHP 7.4.6, nginx 1.18.0, Linux
+2020-06-23 20:58:29 info Install extension 'English 0.8.19'
+2020-06-23 20:58:29 info Install extension 'French 0.8.19'
+2020-06-23 20:58:29 info Install extension 'German 0.8.19'
+2020-06-23 21:00:06 info Add user 'Ashymad'
2023-12-22 17:46:30 info Install Datenstrom Yellow 0.8.23, PHP 8.2.13, Built-in 8.2.13, Linux
2023-12-22 17:46:30 info Install extension 'Update 0.8.97'
2023-12-22 17:46:30 info Install extension 'Core 0.8.125'
@@ -17,3 +22,8 @@
2026-03-02 21:53:49 info Install extension 'Blog 0.9.4'
2026-03-02 22:02:06 info Install extension 'Previousnext 0.9.1'
2026-03-03 21:08:43 info Install extension 'English 0.9.5'
+2026-06-12 20:07:02 info Update extension 'Core 0.9.26'
+2026-06-12 20:07:02 info Update extension 'Edit 0.9.18'
+2026-06-12 20:07:02 info Update extension 'Update 0.9.10'
+2026-06-12 20:07:33 info Apply patches for Datenstrom Yellow 0.8.19
+2026-06-12 20:07:33 info Apply patches for Datenstrom Yellow 0.9
diff --git a/system/extensions/yellow.log b/system/extensions/yellow.log
@@ -1,5 +0,0 @@
-2020-06-23 20:58:29 info Datenstrom Yellow 0.8.12, PHP 7.4.6, nginx 1.18.0, Linux
-2020-06-23 20:58:29 info Install extension 'English 0.8.19'
-2020-06-23 20:58:29 info Install extension 'French 0.8.19'
-2020-06-23 20:58:29 info Install extension 'German 0.8.19'
-2020-06-23 21:00:06 info Add user 'Ashymad'
diff --git a/system/layouts/header.html b/system/layouts/header.html
@@ -13,7 +13,7 @@
<div class="<?php echo "page layout-".$this->yellow->page->getHtml("layout") ?>">
<div class="header" role="banner">
<div class="sitename">
-<h1><a href="<?php echo $this->yellow->page->getBase(true)."/" ?>"><i class="sitename-logo"></i><span class="latex">M<sub>I</sub>K<sup>U</sup>L<sup>I</sup>.C<sub>Z</sub></span></a></h1>
+<h1><a href="<?php echo $this->yellow->page->getBase(true)."/" ?>"><i class="sitename-logo"></i><?php echo $this->yellow->page->getHtml("sitename") ?></a></h1>
<?php echo $this->yellow->page->getPage("header")->getContentHtml() ?>
</div>
<div class="sitename-banner"></div>
diff --git a/system/workers/core.php b/system/workers/core.php
@@ -2,7 +2,7 @@
// Core extension, https://github.com/annaesvensson/yellow-core
class YellowCore {
- const VERSION = "0.9.22";
+ const VERSION = "0.9.26";
const RELEASE = "0.9";
public $content; // content files
public $media; // media files
@@ -28,6 +28,7 @@ class YellowCore {
$this->system->setDefault("sitename", "Localhost");
$this->system->setDefault("author", "Datenstrom");
$this->system->setDefault("email", "webmaster");
+ $this->system->setDefault("from", "noreply");
$this->system->setDefault("language", "en");
$this->system->setDefault("layout", "default");
$this->system->setDefault("theme", "default");
@@ -144,9 +145,6 @@ class YellowCore {
}
if (!is_readable($fileName)) $this->page->error(404);
}
- if ($this->system->get("coreDebugMode")>=1 && ($this->lookup->isContentFile($fileName) || $this->page->isError())) {
- echo "YellowCore::processRequest file:$fileName<br />\n";
- }
return $statusCode;
}
@@ -155,7 +153,6 @@ class YellowCore {
ob_clean();
$statusCode = $this->sendPage($this->page->scheme, $this->page->address, $this->page->base,
$this->page->location, $this->page->fileName, false, false);
- if ($this->system->get("coreDebugMode")>=1) echo "YellowCore::processRequestError file:".$this->page->fileName."<br />\n";
return $statusCode;
}
@@ -183,8 +180,8 @@ class YellowCore {
}
// Send page response
- public function sendPage($scheme, $address, $base, $location, $fileName, $cacheable, $showSource) {
- $rawData = $showSource ? $this->toolbox->readFile($fileName) : $this->page->getRawDataError();
+ public function sendPage($scheme, $address, $base, $location, $fileName, $cacheable, $regular) {
+ $rawData = $regular ? $this->toolbox->readFile($fileName) : $this->page->getRawDataError();
$statusCode = max($this->page->statusCode, 200);
$errorMessage = $this->page->errorMessage;
$this->page = new YellowPage($this);
@@ -198,11 +195,11 @@ class YellowCore {
foreach ($this->page->headerData as $key=>$value) {
echo "YellowCore::sendPage $key: $value<br />\n";
}
- $language = $this->page->get("language");
+ $fileNameResponse = $regular ? $this->page->fileName : $this->page->getFileNameError();
$layout = $this->page->get("layout");
$theme = $this->page->get("theme");
- $parser = $this->page->get("parser");
- echo "YellowCore::sendPage language:$language layout:$layout theme:$theme parser:$parser<br />\n";
+ echo "YellowCore::sendPage file:$fileNameResponse<br />\n";
+ echo "YellowCore::sendPage layout:$layout theme:$theme<br />\n";
}
return $statusCode;
}
@@ -1147,7 +1144,7 @@ class YellowLookup {
$rootLocations["root/"] = "$pathBase";
}
if ($this->yellow->system->get("coreDebugMode")>=3) {
- foreach ($rootLocations as $key=>$key) {
+ foreach ($rootLocations as $key=>$value) {
echo "YellowLookup::findContentRootLocations $key -> $value<br />\n";
}
}
@@ -2973,7 +2970,7 @@ class YellowToolbox {
if ($statusCode!=0) break;
}
}
- if ($statusCode==0) {
+ if ($statusCode==0 && $this->yellow->system->get("coreWebsiteFile")!="none") {
$line = date("Y-m-d H:i:s")." ".trim($action)." ".trim($message)."\n";
$this->appendFile($this->yellow->system->get("coreServerInstallDirectory").
$this->yellow->system->get("coreExtensionDirectory").
@@ -3165,8 +3162,8 @@ class YellowPage {
$description = $this->yellow->toolbox->createTextDescription($this->parserData, 150);
$this->set("description", !is_string_empty($description) ? $description : $this->get("title"));
}
- if ($this->yellow->system->get("coreDebugMode")>=3) {
- echo "YellowPage::parseContent location:".$this->location."<br />\n";
+ if ($this->yellow->system->get("coreDebugMode")>=2) {
+ echo "YellowPage::parseContent file:".$this->fileName." parser:".$this->get("parser")."<br />\n";
}
}
}
@@ -3196,7 +3193,6 @@ class YellowPage {
$this->parsePageLayout($this->get("layout"));
if (!$this->isCacheable()) $this->setHeader("Cache-Control", "no-cache, no-store");
if (!$this->isHeader("Content-Type")) $this->setHeader("Content-Type", "text/html; charset=utf-8");
- if (!$this->isHeader("Content-Modified")) $this->setHeader("Content-Modified", $this->getModified(true));
if (!$this->isHeader("Last-Modified")) $this->setHeader("Last-Modified", $this->getLastModified(true));
$theme = $this->yellow->lookup->normaliseName($this->get("theme"));
if (!is_file($this->yellow->system->get("coreThemeDirectory").$theme.".css") &&
@@ -3493,9 +3489,7 @@ class YellowPage {
// Return raw data for error page
public function getRawDataError() {
$statusCode = $this->statusCode;
- $sharedLocation = $this->yellow->content->getHomeLocation($this->location)."shared/";
- $fileNameError = $this->yellow->lookup->findFileFromContentLocation($sharedLocation, true).$this->yellow->system->get("coreContentErrorFile");
- $fileNameError = str_replace("(.*)", $statusCode, $fileNameError);
+ $fileNameError = $this->getFileNameError();
$languageError = $this->yellow->lookup->findContentLanguage($this->fileName, $this->yellow->system->get("language"));
if (is_file($fileNameError)) {
$rawData = $this->yellow->toolbox->readFile($fileNameError);
@@ -3509,6 +3503,13 @@ class YellowPage {
return $rawData;
}
+ // Return file name for error page
+ public function getFileNameError() {
+ $sharedLocation = $this->yellow->content->getHomeLocation($this->location)."shared/";
+ $fileNameError = $this->yellow->lookup->findFileFromContentLocation($sharedLocation, true).$this->yellow->system->get("coreContentErrorFile");
+ return str_replace("(.*)", $this->statusCode, $fileNameError);
+ }
+
// Return page status code, number or HTTP format
public function getStatusCode($httpFormat = false) {
$statusCode = $this->statusCode;
diff --git a/system/workers/edit-stack.svg b/system/workers/edit-stack.svg
diff --git a/system/workers/edit.php b/system/workers/edit.php
@@ -2,7 +2,7 @@
// Edit extension, https://github.com/annaesvensson/yellow-edit
class YellowEdit {
- const VERSION = "0.9.15";
+ const VERSION = "0.9.18";
public $yellow; // access to API
public $response; // web response
public $merge; // text merge
@@ -13,7 +13,6 @@ class YellowEdit {
$this->yellow = $yellow;
$this->response = new YellowEditResponse($yellow);
$this->merge = new YellowEditMerge($yellow);
- $this->yellow->system->setDefault("editSiteEmail", "noreply");
$this->yellow->system->setDefault("editLocation", "/edit/");
$this->yellow->system->setDefault("editUploadNewLocation", "/media/@group/@filename");
$this->yellow->system->setDefault("editUploadExtensions", ".gif, .jpeg, .jpg, .mp3, .mp4, .ogg, .pdf, .png, .svg, .zip");
@@ -302,7 +301,8 @@ class YellowEdit {
$statusCode = $this->yellow->sendStatus(301, $location);
} else {
$statusCode = 404;
- if ($this->response->isUserAccess("create", $location)) $statusCode = 434;
+ if ($this->response->isUserAccess("create", $location) && $this->response->isCreateLocation($location))
+ $statusCode = 434;
if ($this->response->isUserAccess("restore", $location) && $this->response->isDeletedLocation($location)) {
$statusCode = 435;
}
@@ -383,7 +383,7 @@ class YellowEdit {
}
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "confirm") ? "next" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -403,7 +403,7 @@ class YellowEdit {
}
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "approve") ? "done" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -425,7 +425,7 @@ class YellowEdit {
}
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "welcome") ? "done" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -440,7 +440,7 @@ class YellowEdit {
if ($this->response->status=="ok" && !$this->yellow->user->isExisting($email)) $this->response->status = "next";
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "recover") ? "next" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -505,7 +505,7 @@ class YellowEdit {
}
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $emailSource, "change") ? "done" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -556,7 +556,7 @@ class YellowEdit {
if ($this->response->status=="ok") $this->response->status = $this->getUserAccount($this->response->action, $email, "");
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "remove") ? "next" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
$statusCode = $this->yellow->processRequest($scheme, $address, $base, $location, $fileName, false);
return $statusCode;
@@ -578,7 +578,7 @@ class YellowEdit {
}
if ($this->response->status=="ok") {
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, "goodbye") ? "ok" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
if ($this->response->status=="ok") {
$fileNameUser = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("coreUserFile");
@@ -637,7 +637,7 @@ class YellowEdit {
if ($this->response->status=="ok") {
$action = $email!=$emailSource ? "verify" : "change";
$this->response->status = $this->response->sendMail($scheme, $address, $base, $email, $action) ? "next" : "error";
- if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($this->response->status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
} else {
if ($this->response->status=="ok") {
@@ -944,7 +944,7 @@ class YellowEdit {
}
if ($status=="ok" && $statusBeforeProtection=="active") {
$status = $this->response->sendMail($scheme, $address, $base, $email, "reactivate") ? "done" : "error";
- if ($status=="error") $this->yellow->page->error(500, "Can't send email on this server!");
+ if ($status=="error") $this->yellow->page->error(500, "Can't send email message!");
}
}
}
@@ -1607,7 +1607,7 @@ class YellowEditResponse {
$message = preg_replace("/@username/i", $userName, $message);
$message = preg_replace("/@userlanguage/i", $userLanguage, $message);
$sitename = $this->yellow->system->get("sitename");
- $siteEmail = $this->yellow->system->get("editSiteEmail");
+ $siteEmail = $this->yellow->system->get("from");
$subject = $this->yellow->language->getText("{$prefix}Subject", $userLanguage);
$footer = $this->yellow->language->getText("editMailFooter", $userLanguage);
$footer = str_replace("\\n", "\r\n", $footer);
@@ -1816,6 +1816,11 @@ class YellowEditResponse {
$this->yellow->toolbox->writeFile($fileNameRestored, $rawDataRestored);
}
+ // Check if location can be created
+ public function isCreateLocation($location) {
+ return !is_string_empty($this->yellow->lookup->findFileFromContentLocation($location));
+ }
+
// Check if location has been deleted
public function isDeletedLocation($location) {
$found = false;
diff --git a/system/workers/update.php b/system/workers/update.php
@@ -2,7 +2,7 @@
// Update extension, https://github.com/annaesvensson/yellow-update
class YellowUpdate {
- const VERSION = "0.9.9";
+ const VERSION = "0.9.10";
const PRIORITY = "2";
public $yellow; // access to API
public $extensions; // number of extensions