Ticket #699 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

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

Change History

Changed 4 years ago by BrianKoontz

  • status changed from new to closed
  • resolution set to invalid

Got ahead of myself on this one...these two actions haven't even been ported to trunk yet!

Note: See TracTickets for help on using tickets.