Ticket #1050 (closed enhancement: fixed)
getAge should be static
Reported by: | JcDenis | Owned by: | Tomtom33 |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | module:public | Version: | |
Severity: | normal | Keywords: | public,template |
Cc: |
Description
In class dcTemplate, function getAge() should be static, so it could be called everywhere with dcTemplate::getAge($attr);
Change History
comment:1 Changed 14 years ago by Tomtom33
- Owner changed from team to Tomtom33
- Milestone changed from 2.3 to 2.4
comment:2 Changed 14 years ago by bruno
- Priority changed from low to normal
- Severity changed from trivial to normal
- Milestone 2.4 deleted
comment:4 Changed 13 years ago by JcDenis
Je me servais souvent de cette fonction dans des plugins en partie public et du coup je faisais un copié/collé à chaque fois, alors que si elle était static j'aurais pu l'appeler de n'importe ou.
comment:6 Changed 13 years ago by franck <carnet.franck.paul@…>
- Status changed from new to closed
- Resolution set to fixed
(In [1bb2aef1cb93]) Put dcTemplate::getAge() function to static, fixes #1050
Note: See
TracTickets for help on using
tickets.