[Mapbender-commits] r4882 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 30 07:28:26 EDT 2009


Author: christoph
Date: 2009-10-30 07:28:26 -0400 (Fri, 30 Oct 2009)
New Revision: 4882

Modified:
   trunk/mapbender/http/classes/class_locale.php
Log:


Modified: trunk/mapbender/http/classes/class_locale.php
===================================================================
--- trunk/mapbender/http/classes/class_locale.php	2009-10-30 11:27:45 UTC (rev 4881)
+++ trunk/mapbender/http/classes/class_locale.php	2009-10-30 11:28:26 UTC (rev 4882)
@@ -150,16 +150,16 @@
          * @returns true if the language is supported; otherwise false
          */
         function isKnownLanguage($languageId) {
-                if ($this->knownLanguages == null) {
-                        $this->setKnownLanguages();
-                }
-                if (array_key_exists($languageId, $this->knownLanguages)) {
-                        return true;
-                }
-                else {
-                        $e = new Mb_notice("language " . $languageId . " not supported.");
-                }
-                return false;
+			if ($this->knownLanguages == null) {
+				$this->setKnownLanguages();
+			}
+			if (array_key_exists($languageId, $this->knownLanguages)) {
+				return true;
+			}
+			else {
+				$e = new Mb_notice("language " . $languageId . " not supported.");
+			}
+			return false;
         }
 
 



More information about the Mapbender_commits mailing list