Author: Eric.Lemoine
Date: 2010-04-02 15:08:50 +0200 (Fri, 02 Apr 2010)
New Revision: 28968
Modified:
plugins/elXHProfPlugin/trunk/lib/XHProfRun.class.php
plugins/elXHProfPlugin/trunk/lib/elWebDebugPanelXHProf.class.php
Log:
Prevents Call to undefined function _compute_public_path()
Modified: plugins/elXHProfPlugin/trunk/lib/XHProfRun.class.php
===================================================================
--- plugins/elXHProfPlugin/trunk/lib/XHProfRun.class.php 2010-04-02
09:17:51 UTC (rev 28967)
+++ plugins/elXHProfPlugin/trunk/lib/XHProfRun.class.php 2010-04-02
13:08:50 UTC (rev 28968)
@@ -132,6 +132,7 @@
*/
public function getUrl()
{
+ sfContext::getInstance()->getConfiguration()->loadHelpers('Asset');
return sprintf('%s?run=%s&source=%s', _compute_public_path('index.php',
'elXHProfPlugin', 'php'),$this->getId(), $this->getNamespace());
}
Modified: plugins/elXHProfPlugin/trunk/lib/elWebDebugPanelXHProf.class.php
===================================================================
--- plugins/elXHProfPlugin/trunk/lib/elWebDebugPanelXHProf.class.php
2010-04-02 09:17:51 UTC (rev 28967)
+++ plugins/elXHProfPlugin/trunk/lib/elWebDebugPanelXHProf.class.php
2010-04-02 13:08:50 UTC (rev 28968)
@@ -62,6 +62,7 @@
$html .= '</div>';
}
+ sfContext::getInstance()->getConfiguration()->loadHelpers('Asset');
$baseUrl = _compute_public_path('index.php', 'elXHProfPlugin', 'php');
$html .=<<<EOF
<script type="text/javascript">
--
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.