private static function createLangBoard(Module_Forum $module, GWF_Language $lang, $parent) { $iso = $lang->getISO(); $title = $module->langISO($iso, 'lang_board_title', array($lang->getVar('name'))); if (false !== ($board = GWF_ForumBoard::getByTitle($title))) { return ''; } $descr = $module->langISO($iso, 'lang_board_descr', array($lang->getVar('lang_nativename'))); $options = GWF_ForumBoard::GUEST_VIEW | GWF_ForumBoard::ALLOW_THREADS; if (false === ($board = GWF_ForumBoard::createBoard($title, $descr, $parent, $options, 0))) { return GWF_HTML::err('ERR_DATABASE', __FILE__, __LINE__); } return ''; }
public function hrefEdit(GWF_Language $lang) { return GWF_WEB_ROOT . 'news/edit/' . $this->getVar('news_id') . '-' . $this->getTitle() . '/langid-' . $lang->getVar('lang_id'); }
public static function setCurrentLanguage(GWF_Language $lang, $refresh_lang_cache = false) { self::$LANG = $lang; self::$ISO = $lang->getVar('lang_iso'); return true; }