protected function getGlobalTemplateDir($template) { $directory = ncFlavorFlavors::getGlobalPath() . '/templates'; if (is_readable($directory . '/' . $template)) { return $directory; } return null; }
public function setMessageSource($dirs, $culture = null) { $current = ncFlavorFlavors::getInstance()->current(); $dirs = array_merge($dirs, array(ncFlavorFlavors::getGlobalPath() . DIRECTORY_SEPARATOR . "i18n")); parent::setMessageSource($dirs, $culture); }