Super hack to fix a production issue with the shared modules.
git-svn-id: http://svn.cleancode.org/svn/pickles@136 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
efb5b6a677
commit
94f2611b48
1 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,11 @@ class Display_Smarty extends Display_Common {
|
|||
|
||||
if (!file_exists($template)) {
|
||||
$shared_template = PICKLES_PATH . 'common/templates/' . ($this->shared_module_filename == false ? $this->module_filename : $this->shared_module_filename) . '.tpl';
|
||||
|
||||
// @todo SUPER HACKINSHIT
|
||||
if ($this->module_filename == 'store/admin') {
|
||||
$shared_template = PICKLES_PATH . 'common/templates/store/admin.tpl';
|
||||
}
|
||||
|
||||
if (file_exists($shared_template)) {
|
||||
$template = $shared_template;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue