Permalink
Browse files

fixed web debug icon to work in non-webroot project locations

  • Loading branch information...
1 parent b9339e0 commit afc52e4e066d46ae08cbe8b052ab71118d39eb7e @vworldat vworldat committed Jul 28, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/debug/sfWebDebugPanelLESS.class.php
View
3 lib/debug/sfWebDebugPanelLESS.class.php
@@ -51,7 +51,8 @@ public static function listenToLoadDebugWebPanelEvent(sfEvent $event)
*/
public function getTitle()
{
- return '<img src="/sfLESSPlugin/images/css_go.png" alt="LESS helper" height="16" width="16" /> less';
+ $path = sfContext::getInstance()->getRequest()->getRelativeUrlRoot();
+ return '<img src="'.$path.'/sfLESSPlugin/images/css_go.png" alt="LESS helper" height="16" width="16" /> less';
}
/**

0 comments on commit afc52e4

Please sign in to comment.