コード例 #1
0
    define("DB_CHARSET", "utf-8");
}
if (strlen($set->getCharset()) > 0) {
    define("OBIB_CHARSET", $set->getCharset());
} else {
    define("OBIB_CHARSET", DB_CHARSET);
}
//  define("OBIB_CHARSET",$set->getCharset());
//jal 5/jul/2015 para alx mu.ltiidioma    ----<
define("OBIB_HTML_LANG_ATTR", $set->getHtmlLangAttr());
define("OBIB_LIBRARY_USE_IMAGE_ONLY", $set->isUseImageSet());
define("OBIB_LIBRARY_IMAGE_URL", $set->getLibraryImageUrl());
//jal 5/jul/2015 para alx mu.ltiidioma    ---->
$locQ = new LocaleQuery(OBIB_LOCALE);
$locQ->connect();
if ($locQ->errorOccurred()) {
    $locQ->close();
    displayErrorPage($locQ);
}
$locQ->_getLocaleInfo();
if ($locQ->errorOccurred()) {
    $locQ->close();
    displayErrorPage($locQ);
}
if ($locQ->_isdefaultlocale) {
    define("VIEW_LOCALE", '');
} else {
    define("VIEW_LOCALE", OBIB_LOCALE);
}
$locQ->close();
//jal 5/jul/2015 para alx mu.ltiidioma    ----<