commit 8b0028981910ccdd4ed50d889eb689b6873d5a35
parent 909ec39be8e9a32b6927af48807fb2045b47df24
Author: markseu <mark2011@mayberg.se>
Date: Wed, 10 Jun 2015 17:13:17 +0200
Core update (API)
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/system/core/core-webinterface.php b/system/core/core-webinterface.php
@@ -73,10 +73,10 @@ class YellowWebinterface
}
// Handle page content parsing of custom block
- function onParseContentBlock($page, $name, $text, $typeShortcut)
+ function onParseContentBlock($page, $name, $text, $shortcut)
{
$output = NULL;
- if($name=="edit" && $typeShortcut)
+ if($name=="edit" && $shortcut)
{
$editText = "$name $text";
if(substru($text, 0, 2)=="- ") $editText = trim(substru($text, 2));
diff --git a/system/core/core.php b/system/core/core.php
@@ -523,18 +523,18 @@ class YellowPage
}
// Parse page content block
- function parseContentBlock($name, $text, $typeShortcut)
+ function parseContentBlock($name, $text, $shortcut)
{
$output = NULL;
foreach($this->yellow->plugins->plugins as $key=>$value)
{
if(method_exists($value["obj"], "onParseContentBlock"))
{
- $output = $value["obj"]->onParseContentBlock($this, $name, $text, $typeShortcut);
+ $output = $value["obj"]->onParseContentBlock($this, $name, $text, $shortcut);
if(!is_null($output)) break;
}
}
- if(defined("DEBUG") && DEBUG>=3 && !empty($name)) echo "YellowPage::parseContentBlock name:$name shortcut:$typeShortcut<br/>\n";
+ if(defined("DEBUG") && DEBUG>=3 && !empty($name)) echo "YellowPage::parseContentBlock name:$name shortcut:$shortcut<br/>\n";
return $output;
}