Skip to content

Commit

Permalink
Replace & with & for in custom code boxes for valid HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
PayBas committed Oct 13, 2014
1 parent be01156 commit c6e3f16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/pbwow.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function global_style_append()
if ($topbar_enable && isset($topbar_code))
{
$tpl_vars += array(
'TOPBAR_CODE' => html_entity_decode($topbar_code),
'TOPBAR_CODE' => str_replace('&', '&', html_entity_decode($topbar_code)),
);
$body_class .= ' topbar';

Expand Down Expand Up @@ -173,8 +173,8 @@ public function global_style_append()

// Misc
$tpl_vars += array(
'HEADERLINKS_CODE' => ($headerlinks_enable && isset($headerlinks_code)) ? html_entity_decode($headerlinks_code) : false,
'ADS_INDEX_CODE' => ($ads_index_enable && isset($ads_index_code)) ? html_entity_decode($ads_index_code) : false,
'HEADERLINKS_CODE' => ($headerlinks_enable && isset($headerlinks_code)) ? str_replace('&', '&', html_entity_decode($headerlinks_code)) : false,
'ADS_INDEX_CODE' => ($ads_index_enable && isset($ads_index_code)) ? str_replace('&', '&', html_entity_decode($ads_index_code)) : false,
'S_PBWOW_AVATARS' => isset($avatars_enable) ? $avatars_enable : false,
'S_SMALL_RANKS' => isset($smallranks_enable) ? $smallranks_enable : false //TODO use this somehow
);
Expand Down

0 comments on commit c6e3f16

Please sign in to comment.