summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurits Lawende2012-11-15 18:09:45 (GMT)
committer Maurits Lawende2012-11-15 18:09:45 (GMT)
commit6d98bd1133eada775fd9e8f11a09f3f5296d2384 (patch)
tree96d387090c26abc8db07c863d6137c409f28a9d0
parent6843df05e7e63d5680b9455de6a8a3a5c9fa8852 (diff)
Issue #1841766 by dvandijk: Fix call-time-pass-by-reference issues
-rw-r--r--felix.pages.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/felix.pages.inc b/felix.pages.inc
index 307f367..7ca7b75 100644
--- a/felix.pages.inc
+++ b/felix.pages.inc
@@ -62,7 +62,8 @@ function _felix_add_block_nodetype_page($region, $nodetype, $path) {
$output = '';
$output .= '<h2>' . t('Search node') . '</h2>';
- $output .= drupal_render(drupal_get_form('felix_add_node_form', $region, $nodetype, $path));
+ $form = drupal_get_form('felix_add_node_form', $region, $nodetype, $path);
+ $output .= drupal_render($form);
$output .= '<h2>' . t('Recent content') . '</h2>';
$language_condition = db_or()
@@ -197,7 +198,7 @@ function _felix_add_block($region, $path, $module, $delta, $detail_path = NULL,
foreach (module_implements('felix_block_insert') as $module) {
$hook = "{$module}_felix_block_insert";
- $hook(&$block, $path);
+ $hook($block, $path);
}
$block->data = serialize($block->data);