Changes between Version 1 and Version 2 of Ticket #17199, comment 2


Ignore:
Timestamp:
Nov 11, 2011, 10:11:27 AM (13 years ago)
Author:
German M. Bravo

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17199, comment 2

    v1 v2  
    1 I'm now not sure if template loaders should return the tempalte and the origin, or the template and the display_name. I guess they should return the origin instead, as it has more information... My doubt rises from the fact BaseLoader returns display_name, but seemingly, cached template loader returns origin when it fails... My patch returns display_name (from origin.name).
     1I'm now not sure if template loaders should return the tempalte and the origin, or the template and the display_name. I guess they should return the origin instead, as it has more information... My doubt rises from the fact BaseLoader returns display_name, but seemingly, cached template loader returns origin when load_template() fails to find the template... My patch returns display_name (from origin.name) as it seems to be consistent with all the other load_template() methods.
Back to Top