Opened 2 years ago
Closed 2 years ago
#2730 closed Defect (fixed)
Missing argument 3 for elgg_view_list_item()
| Reported by: | hellekin | Owned by: | cash |
|---|---|---|---|
| Priority: | low | Milestone: | Elgg 1.8.0 |
| Component: | Core | Version: | Github Master |
| Severity: | annoying | Keywords: | |
| Cc: | brett@… | Difficulty: | trivial |
Description
PHP WARNING: "Missing argument 3 for elgg_view_list_item(), called in /path/to/elgg-1.8/views/default/layout/objects/list.php on line 61 and defined" in file /path/to/elgg-1.8/engine/lib/views.php (line 1065)
The problem is that the third argument is not used at all by elgg_view_list_item(). So, where is the bug? :)
Change History (2)
comment:1 Changed 2 years ago by cash
- Difficulty set to trivial
- Milestone changed from Needs Review to Elgg 1.8
- Owner set to cash
- Priority changed from normal to low
- Severity changed from minor to annoying
- Status changed from new to assigned
comment:2 Changed 2 years ago by cash
- Resolution set to fixed
- Status changed from assigned to closed
(In [svn:7712]) Fixes #2730 - passing the vars array into elgg_view_list_item so that eventually plugins can pass additional parameters into list views
Note: See
TracTickets for help on using
tickets.

I am retrofitting a better system for handling lists and all the functions aren't ready yet to achieve what I want. Basically, I want all view functions to accept a $vars parameter. It may be a while before that is achieved.