Author: jablko
Date: 2009-02-11 16:46:06 -0800 (Wed, 11 Feb 2009)
New Revision: 1931

Modified:
   trunk/qubit/apps/qubit/lib/helper/QubitHelper.php
Log:
Call __toString() in render_title() helper


Modified: trunk/qubit/apps/qubit/lib/helper/QubitHelper.php
===================================================================
--- trunk/qubit/apps/qubit/lib/helper/QubitHelper.php   2009-02-12 00:37:06 UTC 
(rev 1930)
+++ trunk/qubit/apps/qubit/lib/helper/QubitHelper.php   2009-02-12 00:46:06 UTC 
(rev 1931)
@@ -86,16 +86,11 @@
 
 function render_title($object)
 {
-  if (0 < strlen($title = $object->title))
+  if (0 < strlen($object))
   {
-    return $title;
+    return (string) $object;
   }
 
-  if (0 < strlen($title = $object->__get('title', array('sourceCulture' => 
true))))
-  {
-    return $title;
-  }
-
   return '<em>Untitled</em>';
 }
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to