OSDN Git Service

FIX: PHP5/MySQL5における文法違反コードの修正
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / libs / PLUGIN.php
index f819b97..c27877a 100755 (executable)
                        $args = func_get_args();
                        array_shift($args);
                        array_unshift($args, 'template');
-                       call_user_func_array(array(&$this,'doSkinVar'),$args);
+                       call_user_func_array(array($this,'doSkinVar'), $args);
                }
                function doTemplateCommentsVar(&$item, &$comment) {
                        $args = func_get_args();
                        array_shift($args);
                        array_shift($args);
                        array_unshift($args, 'template');
-                       call_user_func_array(array(&$this,'doSkinVar'),$args);
+                       call_user_func_array(array($this,'doSkinVar'), $args);
                }
                function doAction($type) { return _ERROR_PLUGIN_NOSUCHACTION; }
                function doIf($key,$value) { return false; }
 
                                                        //trigger event PrePluginOptionsUpdate to give the plugin the
                                                        //possibility to change/validate the new value for the option
-                                                       $manager->notify('PrePluginOptionsUpdate',array('context' => $o->ocontext, 'plugid' => $o->opid, 'optionname' => $o->oname, 'contextid' => $contextid, 'value' => &$value));
+                                                       $param = array(
+                                                               'context'               =>  $o->ocontext,
+                                                               'plugid'                =>  $o->opid,
+                                                               'optionname'    =>  $o->oname,
+                                                               'contextid'             =>  $contextid,
+                                                               'value'                 => &$value
+                                                       );
+                                                       $manager->notify('PrePluginOptionsUpdate', $param);
 
                                                        // delete the old value for the option
                                                        sql_query('DELETE FROM '.sql_table('plugin_option').' WHERE oid='.intval($oid).' AND ocontextid='.intval($contextid));