- $work_dir = DI::config()->get('smarty3', 'config_dir');
- $this->smarty = new FriendicaSmarty($this->theme, $this->theme_info, $work_dir);
+
+ $work_dir = DI::config()->get('smarty3', 'config_dir');
+ $use_sub_dirs = DI::config()->get('smarty3', 'use_sub_dirs');
+
+ $this->smarty = new FriendicaSmarty($this->theme, $this->theme_info, $work_dir, $use_sub_dirs);