Skip to content

Commit

Permalink
Merge pull request #343 from tyrant88/tyrant88-patch-94
Browse files Browse the repository at this point in the history
Fix stats plugin for PHP 8.1
  • Loading branch information
tyrant88 authored Aug 16, 2022
2 parents 0c2319e + 9eb1222 commit 03df96a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
## Version 6.9.2 (2022-08-16)
- Fix stats PlugIn for PHP 8.1

## Version 6.9.1 (2022-07-11)
- remove/replace utf8_encode() for PHP 8.2 #341 @staabm
Expand Down
3 changes: 1 addition & 2 deletions assets/search_it.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@
#subdirs_29 { background-image:url(29.png); }
#subdirs_30 { background-image:url(30.png); }

#search_it_plaintext_description,
#search_it_stats_description { height: 24px; }
#search_it_plaintext_description { height: 24px; }
#search_it_plaintext_description dd { padding-left: 16px; }
.movesymbol { font-size: 21px; }
#sortable-elements {
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it
version: '6.9.1'
version: '6.9.2'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/search_it

Expand Down
2 changes: 1 addition & 1 deletion plugins/autocomplete/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/autocomplete
version: '6.9.1'
version: '6.9.2'
author: Manétage

title: 'translate:search_it_autocomplete_plugin_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/documentation/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/documentation
version: '6.9.1'
version: '6.9.2'
author: Friends Of REDAXO

title: 'translate:search_it_documentation_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/plaintext/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/plaintext
version: '6.9.1'
version: '6.9.2'
author: Friends Of REDAXO

title: 'translate:search_it_plaintext_title'
Expand Down
2 changes: 1 addition & 1 deletion plugins/stats/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: search_it/stats
version: '6.9.1'
version: '6.9.2'
author: Friends Of REDAXO

title: 'translate:search_it_stats_plugin_title'
Expand Down
3 changes: 2 additions & 1 deletion plugins/stats/pages/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
$generalstats['075_cachedsearchcount'] = $table['Rows'];
}

$generalstats['020_averageresultcount'] = number_format($generalstats['020_averageresultcount'], 2, ',', '');
$generalstats['020_averageresultcount'] = number_format($generalstats['020_averageresultcount'] ?? 0, 2, ',', '');
$generalstats['100_datalength'] = search_it_stats_bytesize($generalstats['100_datalength']);
$generalstats['110_indexlength'] = search_it_stats_bytesize($generalstats['110_indexlength']);

Expand Down Expand Up @@ -218,6 +218,7 @@
jQuery('<dt>')
.css('font-weight', '900')
.css('margin-bottom','1em')
.css('padding','0')
.append(
jQuery('<a><?php echo $this->i18n('search_it_settings_show_all'); ?><' + '/a>')
.css('cursor', 'pointer')
Expand Down

0 comments on commit 03df96a

Please sign in to comment.