theme issues w/ common.php:template()

221
Defect
-
2.3.2
2.2
-
Fixed
Low
Trivial
5 years ago
3 years ago
0

Description

What did you do to cause this? Add new /x_theme dir to /system/views/

What page were you on? All

Describe the defect: The function template() is built inconsistently, I have fixed it in my installation but it in 2.x here is what is does: [code] if(file_exists(TRAQPATH.'/themes/views/'.settings('theme').'/'.$template.".php")) { return TRAQPATH.'/system/views/'.settings('theme').'/'.$template.".php"; } and it should be: if(file_exists(TRAQPATH.'/system/views/'.settings('theme').'/'.$template.".php")) { return TRAQPATH.'/system/views/'.settings('theme').'/'.$template.".php"; }[/code]

else it is looking for a new theme in /theme/views/ and including from /system/views/

Ticket History

5 years and 10 months ago by Jack

  • Closed ticket as Fixed

5 years and 10 months ago by Jack

  • Changed Milestone from 3.0 to 2.3.2