Skip to content

Commit

Permalink
Config/Fusion: Remove unused config
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed Apr 26, 2024
1 parent 4f8eaf4 commit ef03ea6
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 23 deletions.
10 changes: 0 additions & 10 deletions application/config/fusion.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,6 @@ $config['reminder_interval'] = 60 * 60 * 12;
$config['keywords'] = "";
$config['description'] = "";

/*
|--------------------------------------------------------------------------
| Use FusionCMS tooltip system instead of WoWHead tooltips
|--------------------------------------------------------------------------
|
| Put to false if you mainly have "blizzlike" items.
|
*/
$config['use_fcms_tooltip'] = true;

/*
|--------------------------------------------------------------------------
| Enable Google Analytics
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private function getHeader(false|string $css = false, false|string $js = false):
"extra_css" => $css,
"extra_js" => $js,
"analytics" => $this->CI->config->item('analytics'),
"use_fcms_tooltip" => $this->CI->config->item('use_fcms_tooltip'),
"use_fcms_tooltip" => true,
"slider" => $this->theme_data['slider_text'],
"slider_id" => $this->theme_data['slider_id'],
"csrf_cookie" => $this->CI->input->cookie('csrf_token_name'),
Expand Down
2 changes: 1 addition & 1 deletion application/modules/character/controllers/Character.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private function getProfile()
"secondBarValue" => $this->secondBarValue,
"bg" => $this->getBackground(),
"realmId" => $this->realm,
"fcms_tooltip" => $this->config->item("use_fcms_tooltip"),
"fcms_tooltip" => true,
"has_stats" => $this->realms->getRealm($this->realm)->getEmulator()->hasStats(),
"faction" => $this->realms->getRealm($this->realm)->getCharacters()->getFaction($this->id)
);
Expand Down
8 changes: 1 addition & 7 deletions application/modules/character/views/character.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,4 @@
</div>
</div>
</div>
<!-- Characters Attributes.End -->

<!-- Load wowhead tooltip -->
{if !$fcms_tooltip}
<script type="text/javascript" src="https://static.wowhead.com/widgets/power.js"></script>
<script>var wowhead_tooltips = { "colorlinks": false, "iconizelinks": false, "renamelinks": false }</script>
{/if}
<!-- Characters Attributes.End -->
2 changes: 1 addition & 1 deletion application/themes/default/views/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
language: '{$activeLanguage}',
image_path: '{$MY_image_path}',
theme_path: '{str_replace(basename($APPPATH)|cat:'/', '', $theme_path)}',
UseFusionTooltip: 1,
UseFusionTooltip: true,
Slider: {
effect: {($slider_style) ? $slider_style : "''"},
Expand Down
2 changes: 1 addition & 1 deletion application/themes/frostbret/views/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
image_path: "{$image_path}",
CSRF: getCookie('csrf_cookie_name'),
language: "{$activeLanguage}",
UseFusionTooltip: 1,
UseFusionTooltip: true,
Slider: {
interval: {$slider_interval},
Expand Down
2 changes: 1 addition & 1 deletion application/themes/heaven/views/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
language: '{$activeLanguage}',
image_path: '{$MY_image_path}',
theme_path: '{str_replace(basename($APPPATH)|cat:'/', '', $theme_path)}',
UseFusionTooltip: 1,
UseFusionTooltip: true,
Slider: {
effect: {($slider_style) ? $slider_style : "''"},
Expand Down
2 changes: 1 addition & 1 deletion application/views/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
CSRF: getCookie('csrf_cookie_name'),
language: "{$activeLanguage}",
UseFusionTooltip: {if $use_fcms_tooltip}1{else}0{/if},
UseFusionTooltip: true,
Slider: {
interval: {$slider_interval},
Expand Down

0 comments on commit ef03ea6

Please sign in to comment.