Fixes from emerge_spartacus runs.

Analyzing the Spartacus creation logfiles
lead to some fixes, mostly old PHP constructors
and some bugs around constants.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2020-03-28 22:21:19 +01:00
parent 3125caa4b5
commit 75d8216515
12 changed files with 23 additions and 10 deletions

View file

@ -1,3 +1,5 @@
0.31.2: Add missing English language constant for plugin_userprofiles_birthdays.
0.31: Iconfont a11y fix (yellowled)
0.30: Adapt backend to 2.x (yellowled)

View file

@ -80,6 +80,7 @@
@define('PLUGIN_USERPROFILES_GRAVATAR_DEFAULT_DESC', 'Specifies the location of a graphic to display if a user doesn\'t have a Gravatar.');
@define('PLUGIN_USERPROFILES_BIRTHDAYSNAME', 'Birthdays of users');
@define('PLUGIN_USERPROFILES_BIRTHDAYSNAME_DESCRIPTION', 'Birthdays of users');
@define('PLUGIN_USERPROFILES_BIRTHDAYTITLE', 'Birthdays');
@define('PLUGIN_USERPROFILES_BIRTHDAYTITLE_DESCRIPTION', 'Show when the users have the next birthday.');
@define('PLUGIN_USERPROFILES_BIRTHDAYTITLE_DEFAULT', 'birthdays');

View file

@ -97,7 +97,7 @@ class serendipity_event_userprofiles extends serendipity_event {
'genpage' => true
));
$propbag->add('author', 'Garvin Hicking, Falk Doering');
$propbag->add('version', '0.31.1');
$propbag->add('version', '0.31.2');
$propbag->add('requirements', array(
'serendipity' => '2.0',
'smarty' => '2.6.7',

View file

@ -20,7 +20,7 @@ class serendipity_plugin_userprofiles_birthdays extends serendipity_plugin {
$propbag->add('description', PLUGIN_USERPROFILES_BIRTHDAYSNAME_DESCRIPTION);
$propbag->add('author', 'Falk Doering');
$propbag->add('stackable', false);
$propbag->add('version', '0.3');
$propbag->add('version', '0.3.1');
$propbag->add('configuration', array('title', 'number'));
$propbag->add('requirements', array(
'serendipity' => '0.8',

View file

@ -1,3 +1,4 @@
1.09.2: Fix constructors for PHP 7.
1.09.1: Translation fixes (German).
1.08: Upgraded phpFlickr library
1.07: Added an option to shuffle the phpFlickr return set, patch by artodeto

View file

@ -58,7 +58,7 @@ if ( !class_exists('phpFlickr') ) {
*/
var $max_cache_rows = 1000;
function phpFlickr ($api_key, $secret = NULL, $die_on_error = false) {
function __construct ($api_key, $secret = NULL, $die_on_error = false) {
//The API Key must be set before any calls can be made. You can
//get your own at https://www.flickr.com/services/api/misc.api_keys.html
$this->api_key = $api_key;
@ -1686,7 +1686,7 @@ if ( !class_exists('phpFlickr_pager') ) {
var $total = null, $page = 0, $pages = null, $photos, $_extra = null;
function phpFlickr_pager($phpFlickr, $method = null, $args = null, $per_page = 30) {
function __construct($phpFlickr, $method = null, $args = null, $per_page = 30) {
$this->per_page = $per_page;
$this->method = $method;
$this->args = $args;

View file

@ -28,7 +28,7 @@ class serendipity_plugin_flickr extends serendipity_plugin {
'smarty' => '2.6.9',
'php' => '4.3.0'
));
$propbag->add('version', '1.09.1');
$propbag->add('version', '1.09.2');
$propbag->add('configuration', array(
'title',
'email',

View file

@ -1,3 +1,8 @@
0.13.1:
-----
* Fix serendipity_plugin_flickrbadge() constructor
for PHP 7.
0.13:
-----
* Use serendipity_request_url()

View file

@ -57,7 +57,7 @@ class serendipity_plugin_flickrbadge
'flickr_username'));
$propbag->add('stackable', true);
$propbag->add('requirements', array('php' => '5.1', 'serendipity' => '0.9'));
$propbag->add('groups', array(FRONTEND_EXTERNAL_SERVICES));
$propbag->add('groups', array('FRONTEND_EXTERNAL_SERVICES'));
$propbag->add('author', 'Lars Strojny');
$propbag->add('version', SERENDIPITY_PLUGIN_FLICKRBADGE_VERSION);
}

View file

@ -7,9 +7,9 @@
*
* @author Lars Strojny <lars@strojny.net>
*/
@define('SERENDIPITY_PLUGIN_FLICKRBADGE_VERSION', '0.13');
@define('SERENDIPITY_PLUGIN_FLICKRBADGE_VERSION', '0.13.1');
if (IN_SERENDIPITY != true) die("Don't hack");
if (IN_serendipity != true) die("Don't hack");
if (version_compare(phpversion(), '5.1.0', '>=')) {
$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';

View file

@ -1,3 +1,7 @@
0.100.1:
-----
* Fix PHP warning.
0.100:
-----
* Added option "none" for "Behavior of image link"

View file

@ -20,7 +20,7 @@ include dirname(__FILE__) . '/lang_en.inc.php';
class subplug_sidebar {
var $changed = false;
function subplug_sidebar ($setting_array = NULL) {
function __construct ($setting_array = NULL) {
if (is_array($setting_array)) {
foreach ($setting_array as $name => $value) {
$this->value_array[$name] = $value;
@ -75,7 +75,7 @@ class serendipity_plugin_imagesidebar extends serendipity_plugin {
$propbag->add('description', PLUGIN_SIDEBAR_IMAGESIDEBAR_DESC);
$propbag->add('stackable', true);
$propbag->add('author', 'Andrew Brown (Menalto code), Matthew Groeninger (Unified/Media Lib. Code), Stefan Lange-Hegermann (Zooomr Code), Matthew Maude (Coppermine code)');
$propbag->add('version', '0.100');
$propbag->add('version', '0.100.1');
$propbag->add('license', 'BSD');
$propbag->add('requirements', array(
'serendipity' => '0.8',