|
@@ -2,7 +2,7 @@
|
|
// Edit extension, https://github.com/annaesvensson/yellow-edit
|
|
// Edit extension, https://github.com/annaesvensson/yellow-edit
|
|
|
|
|
|
class YellowEdit {
|
|
class YellowEdit {
|
|
- const VERSION = "0.9.6";
|
|
|
|
|
|
+ const VERSION = "0.9.7";
|
|
public $yellow; // access to API
|
|
public $yellow; // access to API
|
|
public $response; // web response
|
|
public $response; // web response
|
|
public $merge; // text merge
|
|
public $merge; // text merge
|
|
@@ -1079,6 +1079,7 @@ class YellowEditResponse {
|
|
$page = new YellowPage($this->yellow);
|
|
$page = new YellowPage($this->yellow);
|
|
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$page->parseMeta($rawData, 200);
|
|
$page->parseMeta($rawData, 200);
|
|
|
|
+ $this->editContentFile($page, "normalise", $this->userEmail);
|
|
if ($this->yellow->content->find($page->location)) {
|
|
if ($this->yellow->content->find($page->location)) {
|
|
$page->location = $this->getPageNewLocation($page->rawData, $page->location, $page->get("editNewLocation"));
|
|
$page->location = $this->getPageNewLocation($page->rawData, $page->location, $page->get("editNewLocation"));
|
|
$page->fileName = $this->getPageNewFile($page->location, $page->fileName, $page->get("editNewPrefix"));
|
|
$page->fileName = $this->getPageNewFile($page->location, $page->fileName, $page->get("editNewPrefix"));
|
|
@@ -1112,6 +1113,7 @@ class YellowEditResponse {
|
|
$page = new YellowPage($this->yellow);
|
|
$page = new YellowPage($this->yellow);
|
|
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$page->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$page->parseMeta($rawData, 200);
|
|
$page->parseMeta($rawData, 200);
|
|
|
|
+ $this->editContentFile($page, "normalise", $this->userEmail);
|
|
$pageSource = new YellowPage($this->yellow);
|
|
$pageSource = new YellowPage($this->yellow);
|
|
$pageSource->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$pageSource->setRequestInformation($scheme, $address, $base, $location, $fileName, false);
|
|
$pageSource->parseMeta($rawDataSource, 200);
|
|
$pageSource->parseMeta($rawDataSource, 200);
|