Ticket #699 (closed defect: invalid)
Crash when adminusers and adminpages included in same page
| Reported by: | BrianKoontz | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | administration | Version: | 1.1.6.3 |
| Severity: | normal | Keywords: | architecture, administration |
| Cc: |
Description
When using adminusers and adminpages in the same page, an error is thrown : duplicate declaration for function "optionRanges".
Testcase :
{{adminpages}}
{{adminusers}}
Indeed, "function optionRanges()" is declared both in adminusers.php and adminpages.php. Maybe this function should be moved to Wakka.class.php and renamed to a more understanding name.
Actually, a more appropriate solution might be to consider using PHP classes to provide some level of namespace collision prevention. This would also permit better customization functionality (i.e., classes could be extended as custom classes which would simplify version upgrades in that custom action/handler code would not be overwritten and/or merged with code updates).
Related tickets: #697