Deprecated PHP Coding
| Project: | Menu Translation |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | svendecabooter |
| Status: | closed |
Jump to:
Hi Sven,
I installed the menu translation module today and it works quite nice, except that I see this annoying PHP warning message on top.
"Warning: ... Call-time pass-by-reference has been deprecated ..." for the function calls in line 108 and line 121.
Line 108: _menutranslation_render_rows(&$rows, $menu, 0);
Line 121: _menutranslation_render_rows(&$rows, $menu, $depth);
I searched the internet for a solution and I think I found one. All you have to do is to delete the ampersands "&" from the function calls in line 108 and 121 and put one ampersand into your function prototype in line 114. Well, I did this change to the source and the module is still working.
Line 114: function _menutranslation_render_rows(&$rows, $menu = NULL, $depth = 0) {
With best regards
Mike
hailstorm

#1
Thanks for reporting.
I changed this now.
#2
Automatically closed -- issue fixed for two weeks with no activity.