Author: pmacadden
Date: 2010-09-07 20:07:51 +0200 (Tue, 07 Sep 2010)
New Revision: 30849

Modified:
   plugins/pmSuperfishMenuPlugin/trunk/lib/pmSuperfishMenu.class.php
Log:
a little bug fix

Modified: plugins/pmSuperfishMenuPlugin/trunk/lib/pmSuperfishMenu.class.php
===================================================================
--- plugins/pmSuperfishMenuPlugin/trunk/lib/pmSuperfishMenu.class.php   
2010-09-07 16:06:11 UTC (rev 30848)
+++ plugins/pmSuperfishMenuPlugin/trunk/lib/pmSuperfishMenu.class.php   
2010-09-07 18:07:51 UTC (rev 30849)
@@ -36,7 +36,7 @@
     
     $this->children = array();
     $this->is_root = false;
-    $this->superfish_js = 
"jQuery(function(){jQuery('ul.sf-menu').superfish();});"
+    $this->superfish_js = 
"jQuery(function(){jQuery('ul.sf-menu').superfish();});";
   }
   
   /**
@@ -214,7 +214,7 @@
     $context = sfContext::getInstance();
     $context->getConfiguration()->loadHelpers(array("I18N", "Url"));
     
-    $url = url_for($this->getUrl());
+    $url = $this->getUrl() ? url_for($this->getUrl()) : "";
     $name = __($this->getName());
     $has_credentials = 
$context->getUser()->hasCredential($this->getCredentials());
     

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" 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.com/group/symfony-svn?hl=en.

Reply via email to