aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/river.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-02 13:55:49 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-02 13:55:49 -0400
commit8f515b3d22d4fb6403d078d066b265654fb9a0bd (patch)
tree82ec88000143cdf90e314746f4accfc385cc8276 /engine/lib/river.php
parentb360a604c8bba93889249a74c188719f51034a26 (diff)
downloadelgg-8f515b3d22d4fb6403d078d066b265654fb9a0bd.tar.gz
elgg-8f515b3d22d4fb6403d078d066b265654fb9a0bd.tar.bz2
renamed variable to cause less confusion with the arguments elgg_trigger_plugin_hook()
Diffstat (limited to 'engine/lib/river.php')
-rw-r--r--engine/lib/river.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 547d9495e..711832f70 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -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 " .