Skip to content

Commit

Permalink
fix: path to template images in admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
kulbakin committed Jun 21, 2014
1 parent 0559bc7 commit 9330e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/administrator/components/com_application/dispatcher.php
Expand Up @@ -139,8 +139,8 @@ protected function _actionRender(KCommandContext $context)
$content = $document->render(false, $config);

//lets do some parsing. mission template and legacy stuff
$content = preg_replace_callback('#(src|href)="templates\/#', function ($matches) {
return $matches[1].'="'.KRequest::base().'/templates/';
$content = preg_replace_callback('#(src|href)="(templates|images)\/#', function ($matches) {
return $matches[1].'="'.KRequest::base().'/'.$matches[2].'/';
}, $content);

$content = preg_replace_callback('#(src|href)="/(media|administrator)/#', function ($matches) {
Expand Down

0 comments on commit 9330e83

Please sign in to comment.