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:
Josh Sherman 2009-06-15 02:37:33 +00:00
parent efb5b6a677
commit 94f2611b48

View file

@ -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;