mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
Change obj to args variable for notice query
This commit is contained in:
parent
dab51ba48e
commit
df08a976fc
1 changed files with 4 additions and 4 deletions
|
|
@ -307,17 +307,17 @@ class documentModel extends document
|
||||||
|
|
||||||
// Call trigger (before)
|
// Call trigger (before)
|
||||||
// This trigger can be used to set an alternative output using a different search method
|
// This trigger can be used to set an alternative output using a different search method
|
||||||
unset($obj->use_alternate_output);
|
unset($args->use_alternate_output);
|
||||||
$output = ModuleHandler::triggerCall('document.getNoticeList', 'before', $obj);
|
$output = ModuleHandler::triggerCall('document.getNoticeList', 'before', $args);
|
||||||
if ($output instanceof BaseObject && !$output->toBool())
|
if ($output instanceof BaseObject && !$output->toBool())
|
||||||
{
|
{
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If an alternate output is set, use it instead of running the default queries
|
// If an alternate output is set, use it instead of running the default queries
|
||||||
if (isset($obj->use_alternate_output) && $obj->use_alternate_output instanceof BaseObject)
|
if (isset($args->use_alternate_output) && $args->use_alternate_output instanceof BaseObject)
|
||||||
{
|
{
|
||||||
$output = $obj->use_alternate_output;
|
$output = $args->use_alternate_output;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue