Index: lib/config/sfApplicationConfiguration.class.php
===================================================================
--- lib/config/sfApplicationConfiguration.class.php (revision 7748)
+++ lib/config/sfApplicationConfiguration.class.php (working copy)
@@ -341,6 +341,19 @@
}
/**
+ * Gets the decorator directroy for a given template
+ *
+ * @param string The tempalte file
+ *
+ * @return string A tempalte path
+ *
+ */
+ public function getDecoratorDir($template)
+ {
+ return sfConfig::get('sf_app_template_dir');
+ }
+
+ /**
* Gets the i18n directories to use globally.
*
* @return array An array of i18n directories
Index: lib/view/sfView.class.php
===================================================================
--- lib/view/sfView.class.php (revision 7748)
+++ lib/view/sfView.class.php (working copy)
@@ -128,8 +128,6 @@
$this->parameterHolder = new sfParameterHolder();
$this->parameterHolder->add(sfConfig::get('mod_'.strtolower($moduleName).'_view_param', array()));
- $this->decoratorDirectory = sfConfig::get('sf_app_template_dir');
-
// include view configuration
$this->configure();
@@ -378,6 +376,7 @@
}
else
{
+ $this->decoratorDirectory = $this->context->getConfiguration()->getDecoratorDir($template);
$this->decoratorTemplate = $template;
}