]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
renamed variable to cause less confusion with the arguments elgg_trigger_plugin_hook()
authorCash Costello <cash.costello@gmail.com>
Sat, 2 Jun 2012 17:55:49 +0000 (13:55 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 2 Jun 2012 17:55:49 +0000 (13:55 -0400)
engine/lib/river.php

index 547d9495e4227953f9fa22355dc7bd1c5fb630eb..711832f7050317c1ceda567a4d0ae8e3300b948e 100644 (file)
@@ -55,7 +55,7 @@ $posted = 0, $annotation_id = 0) {
        $posted = sanitise_int($posted);
        $annotation_id = sanitise_int($annotation_id);
 
-       $params = array(
+       $values = array(
                'type' => $type,
                'subtype' => $subtype,
                'action_type' => $action_type,
@@ -68,13 +68,13 @@ $posted = 0, $annotation_id = 0) {
        );
 
        // return false to stop insert
-       $params = elgg_trigger_plugin_hook('creating', 'river', null, $params);
-       if ($params == false) {
+       $values = elgg_trigger_plugin_hook('creating', 'river', null, $values);
+       if ($values == false) {
                // inserting did not fail - it was just prevented
                return true;
        }
 
-       extract($params);
+       extract($values);
 
        // Attempt to save river item; return success status
        $id = insert_data("insert into {$CONFIG->dbprefix}river " .