]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add getDesign to User
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 24 May 2009 03:27:42 +0000 (23:27 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 24 May 2009 03:27:42 +0000 (23:27 -0400)
classes/User.php

index 22090b98678738a3f23d10d3c1fe93047b36f2ca..8cc8285f1eb0222fb0365844248be12224193e0b 100644 (file)
@@ -684,4 +684,9 @@ class User extends Memcached_DataObject
 
         return ($cnt > 0);
     }
+
+    function getDesign()
+    {
+        return Design::staticGet('id', $this->design_id);
+    }
 }