Core update (API)

This commit is contained in:
markseu 2015-06-10 17:13:17 +02:00
parent 909ec39be8
commit 8b00289819
2 changed files with 5 additions and 5 deletions

View file

@ -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));

View file

@ -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;
}