@@ 165-168 (lines=4) @@ | ||
162 | $params = func_get_args(); |
|
163 | $sqlquery = ''; |
|
164 | $sqlparams = array($this->hook_function); |
|
165 | if($this->hook_context != 'all') { |
|
166 | $sqlparams = array($this->hook_function, $this->hook_context); |
|
167 | $sqlquery = " OR majh_hook_context=?"; |
|
168 | } |
|
169 | $module_names=Database::prepare( |
|
170 | "SELECT majh_module_name AS module, majh_module_priority AS priority FROM `##maj_hooks`". |
|
171 | " WHERE majh_hook_function = ? AND (majh_hook_context='all'".$sqlquery.") AND majh_status='enabled'". |
|
@@ 190-193 (lines=4) @@ | ||
187 | if(HookProvider::getInstance()->isModuleOperational()){ |
|
188 | $sqlquery = ''; |
|
189 | $sqlparams = array($this->hook_function); |
|
190 | if($this->hook_context != 'all') { |
|
191 | $sqlparams = array($this->hook_function, $this->hook_context); |
|
192 | $sqlquery = " OR majh_hook_context=?"; |
|
193 | } |
|
194 | $module_names=Database::prepare( |
|
195 | "SELECT majh_module_name AS modules FROM `##maj_hooks`". |
|
196 | " WHERE majh_hook_function = ? AND (majh_hook_context='all'".$sqlquery.") AND majh_status='enabled'" |