Fix blank admin page with PHP8 (#148)
Add missing TOP_EXITS and SHOWS_TOP_EXIT string definitions that lead to a blank serendipity_admin.php page under PHP 8. See https://board.s9y.org/viewtopic.php?t=25730 Also add the IN_serendipity check, and ChangeLog.
This commit is contained in:
parent
5b29e9dda6
commit
67b0fae8da
3
serendipity_plugin_topexits/ChangeLog
Normal file
3
serendipity_plugin_topexits/ChangeLog
Normal file
|
@ -0,0 +1,3 @@
|
|||
1.2:
|
||||
---
|
||||
* Fixed blank admin page with PHP8
|
4
serendipity_plugin_topexits/UTF-8/lang_en.inc.php
Normal file
4
serendipity_plugin_topexits/UTF-8/lang_en.inc.php
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
@define('TOP_EXITS', 'Top Exits');
|
||||
@define('SHOWS_TOP_EXIT', 'Shows the most common exit urls');
|
||||
?>
|
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
|
||||
if (IN_serendipity !== true) {
|
||||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
class serendipity_plugin_topexits extends serendipity_plugin {
|
||||
var $title = TOP_EXITS;
|
||||
|
||||
|
@ -9,7 +15,7 @@ class serendipity_plugin_topexits extends serendipity_plugin {
|
|||
$propbag->add('description', SHOWS_TOP_EXIT);
|
||||
$propbag->add('stackable', false);
|
||||
$propbag->add('author', 'Serendipity Team');
|
||||
$propbag->add('version', '1.1');
|
||||
$propbag->add('version', '1.2');
|
||||
$propbag->add('configuration', array('limit', 'use_links', 'interval'));
|
||||
$propbag->add('groups', array('STATISTICS'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue