Style
authorJan Schneider <jan@horde.org>
Fri, 2 Jul 2010 17:33:09 +0000 (19:33 +0200)
committerJan Schneider <jan@horde.org>
Mon, 5 Jul 2010 10:34:45 +0000 (12:34 +0200)
turba/lib/Object.php

index 58590a1..f096827 100644 (file)
@@ -70,7 +70,7 @@ class Turba_Object {
      */
     function getGuid($delimiter = ':')
     {
-        return 'turba' . $delimiter . $this->driver->getName() . $delimiter . $this->getValue('__uid');
+        return 'turba' . $delimiter . $this->getSource() . $delimiter . $this->getValue('__uid');
     }
 
     /**
@@ -201,7 +201,9 @@ class Turba_Object {
 
         $history = array();
         try {
-            $log = $GLOBALS['injector']->getInstance('Horde_History')->getHistory($this->getGuid());
+            $log = $GLOBALS['injector']
+                ->getInstance('Horde_History')
+                ->getHistory($this->getGuid());
             foreach ($log as $entry) {
                 switch ($entry['action']) {
                 case 'add':