Really default to return the horde id.
authorJan Schneider <jan@horde.org>
Thu, 24 Jun 2010 16:20:03 +0000 (18:20 +0200)
committerJan Schneider <jan@horde.org>
Thu, 24 Jun 2010 16:20:03 +0000 (18:20 +0200)
framework/Core/lib/Horde/Registry.php
kronolith/scripts/upgrades/2009-12-11_fix_column_names.pgsql.sql [new file with mode: 0644]

index c321a23..44ff998 100644 (file)
@@ -1795,19 +1795,20 @@ class Horde_Registry
     /**
      * Returns the currently logged in user, if there is one.
      *
-     * @param string $format  The return format:
-     * <pre>
-     * 'bare' - Horde ID without any domain information (e.g., foo@example.com
-     *          would be returned as 'foo').
-     * 'default' - [DEFAULT] The unique Horde ID.
-     * 'domain' - Domain of the Horde ID (e.g., foo@example.com would be
-     *            returned as 'example.com').
-     * 'original' - The username used to originally login to Horde.
-     * </pre>
+     * @param string $format  The return format, defaults to the unique Horde
+     *                        ID. Alternative formats:
+     *                        - bare: Horde ID without any domain information
+     *                          (e.g., foo@example.com would be returned as
+     *                          'foo').
+     *                        - domain: Domain of the Horde ID (e.g.,
+     *                          foo@example.com would be returned as
+     *                          'example.com').
+     *                        - original: The username used to originally login
+     *                          to Horde.
      *
      * @return mixed  The user ID or false if no user is logged in.
      */
-    public function getAuth($format = 'default')
+    public function getAuth($format = null)
     {
         if ($format == 'original') {
             return empty($_SESSION['horde_auth']['authId'])
@@ -1832,7 +1833,7 @@ class Horde_Registry
                 ? false
                 : substr($user, $pos + 1);
 
-        case 'default':
+        default:
             return $user;
         }
     }
diff --git a/kronolith/scripts/upgrades/2009-12-11_fix_column_names.pgsql.sql b/kronolith/scripts/upgrades/2009-12-11_fix_column_names.pgsql.sql
new file mode 100644 (file)
index 0000000..ee2fe45
--- /dev/null
@@ -0,0 +1,2 @@
+ALTER TABLE kronolith_events_geo RENAME lat TO event_lat;
+ALTER TABLE kronolith_events_geo RENAME lon TO event_lon;