mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +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)
|
||||
// This trigger can be used to set an alternative output using a different search method
|
||||
unset($obj->use_alternate_output);
|
||||
$output = ModuleHandler::triggerCall('document.getNoticeList', 'before', $obj);
|
||||
unset($args->use_alternate_output);
|
||||
$output = ModuleHandler::triggerCall('document.getNoticeList', 'before', $args);
|
||||
if ($output instanceof BaseObject && !$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
// 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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue