* -------------------------------------------------------------------- *
* Kurzbeschreibung : Spezielle Funktion fuer Yoo!Media-Erweiterung *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
+ * $Author:: $ *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
// "Translates" the index number into an assosiative value
function YOOMEDIA_TRANSLATE_INDEX ($type, $index) {
- global $yoomediaTranslationTable;
-
// Default is the index
$return = $index;
// Is the element there?
- if (isset($yoomediaTranslationTable[$type][$index])) {
+ if (isset($GLOBALS['translation_tables']['yoomedia'][$type][$index])) {
// Use this element
- $return = $yoomediaTranslationTable[$type][$index];
+ $return = $GLOBALS['translation_tables']['yoomedia'][$type][$index];
} else {
// Not found!
DEBUG_LOG(__FUNCTION__, __LINE__, " type={$type},index={$index} not found.");
// "Translate" error code
function YOOMEDIA_TRANSLATE_ERROR ($errorCode) {
- global $yoomediaTranslationTable;
-
// Default is "failed"
$return = "failed";
// Is the entry there?
- if (isset($yoomediaTranslationTable['error_codes'][$errorCode])) {
+ if (isset($GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode])) {
// Entry found!
- $return = $yoomediaTranslationTable['error_codes'][$errorCode];
+ $return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
} else {
// Log missing entries
DEBUG_LOG(__FUNCTION__, __LINE__, " errorCode={$errorCode}");