---
a/sites/all/modules/contrib/achievements-7.x-1.x-dev/achievements_pointless/achievements_pointless.module
+++
b/sites/all/modules/contrib/achievements-7.x-1.x-dev/achievements_pointless/achievements_pointless.module
@@ -28,14 +28,14 @@ function achievements_pointless_menu_alter(&$items) {
* Process variables for achievement.tpl.php.
*/
function achievements_pointless_preprocess_achievement(&$variables) {
- achievements_pointless_template_hide_variables(&$variables);
+ achievements_pointless_template_hide_variables($variables);
}
/**
* Process variables for achievement-notification.tpl.php.
*/
function
achievements_pointless_preprocess_achievement_notification(&$variables) {
- achievements_pointless_template_hide_variables(&$variables);
+ achievements_pointless_template_hide_variables($variables);
$variables['unlocked_rank']['#markup'] =
$variables['unlocked_date']['#markup'];
// The points box is now entirely empty; replace rank with the unlock
timestamp.
}
@@ -44,7 +44,7 @@ function
achievements_pointless_preprocess_achievement_notification(&$variables)
* Process variables for achievement-latest-unlock.tpl.php.
*/
function
achievements_pointless_preprocess_achievement_latest_unlock(&$variables) {
- achievements_pointless_template_hide_variables(&$variables);
+ achievements_pointless_template_hide_variables($variables);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | achievements-Fix_call_by_reference_error-1482852-8.patch | 601 bytes | fabianx |
Comments
Comment #1
morbus iffComment #3
circuscowboy commentedcurrent dev is still missing one fix
diff --git a/sites/all/modules/achievements/achievements_pointless/achievements_pointless.module b/sites/all/modules/achievements/achievements_pointless/achievements_pointless.module
index 3d27203..029b2d9 100644
--- a/sites/all/modules/achievements/achievements_pointless/achievements_pointless.module
+++ b/sites/all/modules/achievements/achievements_pointless/achievements_pointless.module
@@ -28,7 +28,7 @@ function achievements_pointless_menu_alter(&$items) {
* Process variables for achievement.tpl.php.
*/
function achievements_pointless_preprocess_achievement(&$variables) {
- achievements_pointless_template_hide_variables(&$variables);
+ achievements_pointless_template_hide_variables($variables);
}
/**
Comment #4
morbus iffComment #5
thedavidmeister commentedThis becomes a fatal error in php5.4 btw.
Comment #6
trillex commentedNot sure if I should open up a new thread but I recently started getting
Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 1128 ofIt first disappeared after I stopped using the "Pointless" module, which is part of Achievements.
This error, in turn, also gave me issues with Tokens - which were simply not available.
Comment #7
thedavidmeister commentedyeah, open a new thread for each instance of deprecated PHP patterns.
Comment #8
fabianx commentedHere is the proper patch. Please apply.
Comment #9
deggertsen commentedThis seems like a rather important fix for those of us using PHP 5.4. Could we get this committed?
Thanks for the patch Fabianx.
Comment #10
Anonymous (not verified) commentedWill someone please commit this?
Comment #11
rachel_norfolkIs this still outstanding from a release version?
Can I help in any way to get it committed?
Thanks, Rachel
Comment #12
jhedstromCommitted #8. Thanks!