Changeset 11121
- Timestamp:
- 08/25/08 19:08:29 (10 months ago)
- Files:
-
- branches/1.2/lib/debug/sfWebDebug.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/debug/sfWebDebug.class.php
r11052 r11121 147 147 public function injectToolbar($content) 148 148 { 149 $content = str_ireplace('</head>', $this->getAssets().'</head>', $content);149 $content = str_ireplace('</head>', '<style>'.str_replace("\n", ' ', $this->getStylesheet()).'</style></head>', $content); 150 150 151 151 $debug = $this->asHtml(); 152 152 $count = 0; 153 $content = str_ireplace('</body>', $debug.'</body>', $content, $count);153 $content = str_ireplace('</body>', '<script type="text/javascript">'.$this->getJavascript().'</script>'.$debug.'</body>', $content, $count); 154 154 if (!$count) 155 155 { … … 236 236 237 237 /** 238 * Gets the HTML to inject in the head tag.239 *240 * @param string The asset HTML code241 */242 public function getAssets()243 {244 return sprintf('245 <script type="text/javascript">%s</script>246 <style>%s</style>',247 $this->getJavascript(),248 str_replace("\n", ' ', $this->getStylesheet())249 );250 }251 252 /**253 238 * Gets the javascript code to inject in the head tag. 254 239 *

