aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 11:18:54 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 11:18:54 +0000
commit428b56a12ebaa334236cfe8bc8ebeef0ef995465 (patch)
tree3b7fd78a61acca95c0ebf3af54a13f91e7a5dd09 /engine/lib
parent001b35c518124a97679101e35f5f1df5c1be08b0 (diff)
downloadelgg-428b56a12ebaa334236cfe8bc8ebeef0ef995465.tar.gz
elgg-428b56a12ebaa334236cfe8bc8ebeef0ef995465.tar.bz2
Fix for previous
git-svn-id: https://code.elgg.org/elgg/trunk@693 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index cdcba7dda..1fe87b5b6 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -767,8 +767,8 @@
function trigger_plugin_hook($hook, $entity_type, $params = null, $returnvalue = null) {
global $CONFIG;
- if (!isset($CONFIG->hooks) || !isset($CONFIG->hooks[$hook]) || !isset($CONFIG->hooks[$hook][$entity_type]))
- return $returnvalue;
+ //if (!isset($CONFIG->hooks) || !isset($CONFIG->hooks[$hook]) || !isset($CONFIG->hooks[$hook][$entity_type]))
+ // return $returnvalue;
if (!empty($CONFIG->hooks[$hook][$entity_type]) && is_array($CONFIG->hooks[$hook][$entity_type])) {
foreach($CONFIG->hooks[$hook][$entity_type] as $hookfunction) {
@@ -777,8 +777,8 @@
}
}
- if (!isset($CONFIG->hooks['all'][$entity_type]))
- return $returnvalue;
+ //if (!isset($CONFIG->hooks['all'][$entity_type]))
+ // return $returnvalue;
if (!empty($CONFIG->hooks['all'][$entity_type]) && is_array($CONFIG->hooks['all'][$entity_type])) {
foreach($CONFIG->hooks['all'][$entity_type] as $hookfunction) {
@@ -787,8 +787,8 @@
}
}
- if (!isset($CONFIG->hooks[$hook]['all']))
- return $returnvalue;
+ //if (!isset($CONFIG->hooks[$hook]['all']))
+ // return $returnvalue;
if (!empty($CONFIG->hooks[$hook]['all']) && is_array($CONFIG->hooks[$hook]['all'])) {
foreach($CONFIG->hooks[$hook]['all'] as $hookfunction) {
@@ -797,8 +797,8 @@
}
}
- if (!isset($CONFIG->hooks['all']['all']))
- return $returnvalue;
+ //if (!isset($CONFIG->hooks['all']['all']))
+ // return $returnvalue;
if (!empty($CONFIG->hooks['all']['all']) && is_array($CONFIG->hooks[$hook]['all'])) {
foreach($CONFIG->hooks['all']['all'] as $hookfunction) {