Skip to content

Commit

Permalink
Updated edit events for Steffen
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed May 6, 2024
1 parent 98c3b35 commit 713faeb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions system/extensions/update-available.ini
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ Status: available
system/workers/dutch.php: dutch.php, create, update

Extension: Edit
Version: 0.9.6
Version: 0.9.7
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: 2024-04-30 17:04:26
Published: 2024-05-06 23:17:11
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
Expand All @@ -229,14 +229,14 @@ system/workers/edit-stack.svg: edit-stack.svg, create, update
content/shared/page-new-default.md: page-new-default.md, create, optional

Extension: Emoji
Version: 0.9.2
Version: 0.9.3
Description: Lots and lots of emoji.
Developer: Anna Svensson
Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-emoji/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-emoji
DocumentationLanguage: en, de, sv
Published: 2024-04-09 19:50:25
Published: 2024-05-06 23:16:06
Status: available
system/workers/emoji.php: emoji.php, create, update
system/workers/emoji.css: emoji.css, create, update
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 @@ -20,14 +20,14 @@ system/layouts/navigation.html: navigation.html, create, update, careful
system/layouts/pagination.html: pagination.html, create, update, careful

Extension: Edit
Version: 0.9.6
Version: 0.9.7
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: 2024-04-30 17:04:26
Published: 2024-05-06 23:17:11
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
Expand Down
4 changes: 3 additions & 1 deletion system/workers/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Edit extension, https://github.com/annaesvensson/yellow-edit

class YellowEdit {
const VERSION = "0.9.6";
const VERSION = "0.9.7";
public $yellow; // access to API
public $response; // web response
public $merge; // text merge
Expand Down Expand Up @@ -1079,6 +1079,7 @@ public function getPageNew($scheme, $address, $base, $location, $fileName, $rawD
$page = new YellowPage($this->yellow);
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$page->parseMeta($rawData, 200);
$this->editContentFile($page, "normalise", $this->userEmail);
if ($this->yellow->content->find($page->location)) {
$page->location = $this->getPageNewLocation($page->rawData, $page->location, $page->get("editNewLocation"));
$page->fileName = $this->getPageNewFile($page->location, $page->fileName, $page->get("editNewPrefix"));
Expand Down Expand Up @@ -1112,6 +1113,7 @@ public function getPageEdit($scheme, $address, $base, $location, $fileName, $raw
$page = new YellowPage($this->yellow);
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$page->parseMeta($rawData, 200);
$this->editContentFile($page, "normalise", $this->userEmail);
$pageSource = new YellowPage($this->yellow);
$pageSource->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
$pageSource->parseMeta($rawDataSource, 200);
Expand Down

0 comments on commit 713faeb

Please sign in to comment.