summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-08-17 10:02:55 +0000
committerDries Buytaert <dries@buytaert.net>2008-08-17 10:02:55 +0000
commitbbe2e8478b0687c2252a2e47bdb0003a23918ef5 (patch)
treed4c7e2604af2cb31e3bcc5df123281af7ed87f17
parent553d8885bd59e3aa310fa3a81afff062d94db100 (diff)
downloadbrdo-bbe2e8478b0687c2252a2e47bdb0003a23918ef5.tar.gz
brdo-bbe2e8478b0687c2252a2e47bdb0003a23918ef5.tar.bz2
- Patch #296302 by chx: remove PHP 5.1 hack now the minimum requirement is PHP 5.2.
-rw-r--r--includes/module.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/includes/module.inc b/includes/module.inc
index ae7667370..0f4bda01b 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -412,13 +412,7 @@ function module_implements($hook, $sort = FALSE, $refresh = FALSE) {
}
registry_cache_hook_implementations(array('hook' => $hook, 'modules' => $implementations[$hook]));
- // The explicit cast forces a copy to be made. This is needed because
- // $implementations[$hook] is only a reference to an element of
- // $implementations and if there are nested foreaches (due to nested node
- // API calls, for example), they would both manipulate the same array's
- // references, which causes some modules' hooks not to be called.
- // See also http://www.zend.com/zend/art/ref-count.php.
- return (array)$implementations[$hook];
+ return $implementations[$hook];
}
/**