Ticket #2676: WebDebugRelativeRoot.patch
| File WebDebugRelativeRoot.patch, 1.1 kB (added by Carl.Vondrick, 10 months ago) |
|---|
-
lib/log/sfWebDebugLogger.class.php
old new 3 3 /* 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. 9 9 */ … … 89 89 } 90 90 91 91 // add needed assets for the web debug toolbar 92 $root = $this->context->getRequest()->getRelativeUrlRoot(); 92 93 $assets = sprintf(' 93 94 <script type="text/javascript" src="%s"></script> 94 95 <link rel="stylesheet" type="text/css" media="screen" href="%s" />', 95 sfConfig::get('sf_web_debug_web_dir').'/js/main.js',96 sfConfig::get('sf_web_debug_web_dir').'/css/main.css'96 $root . sfConfig::get('sf_web_debug_web_dir').'/js/main.js', 97 $root . sfConfig::get('sf_web_debug_web_dir').'/css/main.css' 97 98 ); 98 99 $content = str_ireplace('</head>', $assets.'</head>', $content); 99 100