Updated edit extension, thanks Rheza
This commit is contained in:
parent
9cf5a54bb6
commit
e7f2a29a4c
|
@ -2,7 +2,7 @@
|
|||
// Edit extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/edit
|
||||
|
||||
class YellowEdit {
|
||||
const VERSION = "0.8.49";
|
||||
const VERSION = "0.8.50";
|
||||
public $yellow; // access to API
|
||||
public $response; // web response
|
||||
public $merge; // text merge
|
||||
|
@ -90,7 +90,7 @@ class YellowEdit {
|
|||
if ($name=="edit" && $type=="inline") {
|
||||
$editText = "$name $text";
|
||||
if (substru($text, 0, 2)=="- ") $editText = trim(substru($text, 2));
|
||||
$output = "<a href=\"".$page->get("pageEdit")."\">".htmlspecialchars($editText)."</a>";
|
||||
$output = "<a href=\"".$page->get("pageEditUrl")."\">".htmlspecialchars($editText)."</a>";
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
@ -37,11 +37,11 @@ system/layouts/navigation.html: navigation.html, create, update, careful
|
|||
system/layouts/pagination.html: default.html, create, update, careful
|
||||
|
||||
Extension: Edit
|
||||
Version: 0.8.49
|
||||
Version: 0.8.50
|
||||
Description: Edit your website in a web browser.
|
||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/edit
|
||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/edit.zip
|
||||
Published: 2021-06-10 21:53:49
|
||||
Published: 2021-06-16 18:16:41
|
||||
Developer: Datenstrom
|
||||
Tag: feature
|
||||
system/extensions/edit.php: edit.php, create, update
|
||||
|
|
Loading…
Reference in a new issue