Author: Kris.Wallsmith
Date: 2010-01-28 19:34:57 +0100 (Thu, 28 Jan 2010)
New Revision: 27284
Modified:
branches/1.3/lib/debug/sfWebDebug.class.php
branches/1.3/lib/debug/sfWebDebugPanel.class.php
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
branches/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
branches/1.4/lib/debug/sfWebDebug.class.php
branches/1.4/lib/debug/sfWebDebugPanel.class.php
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
branches/1.4/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
Log:
[1.3, 1.4] fixed empty class attributes in WDT markup (closes #8196)
Modified: branches/1.3/lib/debug/sfWebDebug.class.php
===================================================================
--- branches/1.3/lib/debug/sfWebDebug.class.php 2010-01-28 17:36:46 UTC (rev
27283)
+++ branches/1.3/lib/debug/sfWebDebug.class.php 2010-01-28 18:34:57 UTC (rev
27284)
@@ -185,8 +185,8 @@
if (($content = $panel->getPanelContent()) || $panel->getTitleUrl())
{
$id = sprintf('sfWebDebug%sDetails', $name);
- $titles[] = sprintf('<li class="%s"><a title="%s"
href="%s"%s>%s</a></li>',
- $panel->getStatus() ?
'sfWebDebug'.ucfirst($this->getPriority($panel->getStatus())) : '',
+ $titles[] = sprintf('<li%s><a title="%s" href="%s"%s>%s</a></li>',
+ $panel->getStatus() ? '
class="sfWebDebug'.ucfirst($this->getPriority($panel->getStatus())).'"' : '',
$panel->getPanelTitle(),
$panel->getTitleUrl() ? $panel->getTitleUrl() : '#',
$panel->getTitleUrl() ? '' : '
onclick="sfWebDebugShowDetailsFor(\''.$id.'\'); return false;"',
Modified: branches/1.3/lib/debug/sfWebDebugPanel.class.php
===================================================================
--- branches/1.3/lib/debug/sfWebDebugPanel.class.php 2010-01-28 17:36:46 UTC
(rev 27283)
+++ branches/1.3/lib/debug/sfWebDebugPanel.class.php 2010-01-28 18:34:57 UTC
(rev 27284)
@@ -123,7 +123,7 @@
$isProjectFile = $file && 0 === strpos($file,
sfConfig::get('sf_root_dir')) && !preg_match('/(cache|plugins|vendor)/', $file);
- $html .= sprintf('<span class="%s">#%s » ', $isProjectFile ?
'sfWebDebugHighlight' : '', $keys[$j] + 1);
+ $html .= sprintf('<span%s>#%s » ', $isProjectFile ? '
class="sfWebDebugHighlight"' : '', $keys[$j] + 1);
if (isset($trace['function']))
{
Modified:
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
===================================================================
---
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
2010-01-28 17:36:46 UTC (rev 27283)
+++
branches/1.3/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
2010-01-28 18:34:57 UTC (rev 27284)
@@ -142,11 +142,11 @@
}
$html[] = sprintf('
- <li class="%s">
+ <li%s>
<p class="sfWebDebugDatabaseQuery">%s</p>
<div class="sfWebDebugDatabaseLogInfo">%ss, "%s" connection%s</div>
</li>',
- $event->slowQuery ? 'sfWebDebugWarning' : '',
+ $event->slowQuery ? ' class="sfWebDebugWarning"' : '',
$query,
number_format($event->getElapsedSecs(), 2),
$conn->getName(),
Modified:
branches/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
===================================================================
---
branches/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
2010-01-28 17:36:46 UTC (rev 27283)
+++
branches/1.3/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
2010-01-28 18:34:57 UTC (rev 27284)
@@ -120,11 +120,11 @@
$backtrace = isset($log['debug_backtrace']) &&
count($log['debug_backtrace']) ?
' '.$this->getToggleableDebugStack($log['debug_backtrace']) : '';
$html[] = sprintf('
- <li class="%s">
+ <li%s>
<p class="sfWebDebugDatabaseQuery">%s</p>
<div class="sfWebDebugDatabaseLogInfo">%s%s</div>
</li>',
- $slowQuery ? 'sfWebDebugWarning' : '',
+ $slowQuery ? ' class="sfWebDebugWarning"' : '',
$query,
implode(', ', $details),
$backtrace
Modified: branches/1.4/lib/debug/sfWebDebug.class.php
===================================================================
--- branches/1.4/lib/debug/sfWebDebug.class.php 2010-01-28 17:36:46 UTC (rev
27283)
+++ branches/1.4/lib/debug/sfWebDebug.class.php 2010-01-28 18:34:57 UTC (rev
27284)
@@ -185,8 +185,8 @@
if (($content = $panel->getPanelContent()) || $panel->getTitleUrl())
{
$id = sprintf('sfWebDebug%sDetails', $name);
- $titles[] = sprintf('<li class="%s"><a title="%s"
href="%s"%s>%s</a></li>',
- $panel->getStatus() ?
'sfWebDebug'.ucfirst($this->getPriority($panel->getStatus())) : '',
+ $titles[] = sprintf('<li%s><a title="%s" href="%s"%s>%s</a></li>',
+ $panel->getStatus() ? '
class="sfWebDebug'.ucfirst($this->getPriority($panel->getStatus())).'"' : '',
$panel->getPanelTitle(),
$panel->getTitleUrl() ? $panel->getTitleUrl() : '#',
$panel->getTitleUrl() ? '' : '
onclick="sfWebDebugShowDetailsFor(\''.$id.'\'); return false;"',
Modified: branches/1.4/lib/debug/sfWebDebugPanel.class.php
===================================================================
--- branches/1.4/lib/debug/sfWebDebugPanel.class.php 2010-01-28 17:36:46 UTC
(rev 27283)
+++ branches/1.4/lib/debug/sfWebDebugPanel.class.php 2010-01-28 18:34:57 UTC
(rev 27284)
@@ -123,7 +123,7 @@
$isProjectFile = $file && 0 === strpos($file,
sfConfig::get('sf_root_dir')) && !preg_match('/(cache|plugins|vendor)/', $file);
- $html .= sprintf('<span class="%s">#%s » ', $isProjectFile ?
'sfWebDebugHighlight' : '', $keys[$j] + 1);
+ $html .= sprintf('<span%s>#%s » ', $isProjectFile ? '
class="sfWebDebugHighlight"' : '', $keys[$j] + 1);
if (isset($trace['function']))
{
Modified:
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
===================================================================
---
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
2010-01-28 17:36:46 UTC (rev 27283)
+++
branches/1.4/lib/plugins/sfDoctrinePlugin/lib/debug/sfWebDebugPanelDoctrine.class.php
2010-01-28 18:34:57 UTC (rev 27284)
@@ -142,11 +142,11 @@
}
$html[] = sprintf('
- <li class="%s">
+ <li%s>
<p class="sfWebDebugDatabaseQuery">%s</p>
<div class="sfWebDebugDatabaseLogInfo">%ss, "%s" connection%s</div>
</li>',
- $event->slowQuery ? 'sfWebDebugWarning' : '',
+ $event->slowQuery ? ' class="sfWebDebugWarning"' : '',
$query,
number_format($event->getElapsedSecs(), 2),
$conn->getName(),
Modified:
branches/1.4/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
===================================================================
---
branches/1.4/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
2010-01-28 17:36:46 UTC (rev 27283)
+++
branches/1.4/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
2010-01-28 18:34:57 UTC (rev 27284)
@@ -120,11 +120,11 @@
$backtrace = isset($log['debug_backtrace']) &&
count($log['debug_backtrace']) ?
' '.$this->getToggleableDebugStack($log['debug_backtrace']) : '';
$html[] = sprintf('
- <li class="%s">
+ <li%s>
<p class="sfWebDebugDatabaseQuery">%s</p>
<div class="sfWebDebugDatabaseLogInfo">%s%s</div>
</li>',
- $slowQuery ? 'sfWebDebugWarning' : '',
+ $slowQuery ? ' class="sfWebDebugWarning"' : '',
$query,
implode(', ', $details),
$backtrace
--
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.