Core update (API)
This commit is contained in:
parent
909ec39be8
commit
8b00289819
2 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue