]> git.mxchange.org Git - friendica.git/blobdiff - include/pgettext.php
Workaround for vanished database connections while authentication
[friendica.git] / include / pgettext.php
index 0acbb02cff4f5737b24b2e5bcf87f7e22489cfae..fb87798ff72712b74acccc8f2d4a93bf6b5ba1f4 100644 (file)
@@ -98,7 +98,7 @@ if(! function_exists('load_translation_table')) {
  * @param string $lang language code to load
  */
 function load_translation_table($lang) {
-       global $a;
+       $a = get_app();
 
        $a->strings = array();
        // load enabled plugins strings
@@ -189,4 +189,4 @@ function get_available_languages() {
                }
        }
        return $langs;
-}
\ No newline at end of file
+}