Skip to content

Commit

Permalink
Updated edit events
Browse files Browse the repository at this point in the history
  • Loading branch information
markseuffert committed May 7, 2024
1 parent 713faeb commit 811de1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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.7
Version: 0.9.8
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-05-06 23:17:11
Published: 2024-05-07 07:20:40
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.3
Version: 0.9.4
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-05-06 23:16:06
Published: 2024-05-07 07:21:20
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.7
Version: 0.9.8
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-05-06 23:17:11
Published: 2024-05-07 07:20:40
Status: available
system/workers/edit.php: edit.php, create, update
system/workers/edit.css: edit.css, create, update
Expand Down
6 changes: 3 additions & 3 deletions 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.7";
const VERSION = "0.9.8";
public $yellow; // access to API
public $response; // web response
public $merge; // text merge
Expand Down Expand Up @@ -1079,7 +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);
$this->editContentFile($page, "precreate", $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 @@ -1113,7 +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);
$this->editContentFile($page, "preedit", $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 811de1e

Please sign in to comment.