Wenn man moziloGB unter PHP 7 einsetzt, dann erhält man einige Deprecated - Warnungen:
Direkt auf der Inhaltsseite:
ZitatDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ShowEntries has a deprecated constructor in /www/plugins/moziloGB/ShowEntries.php on line 5
und im Admin bei der Datenbank-Verwaltung
ZitatDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; moziloGBAdmin has a deprecated constructor in /www/plugins/moziloGB/admin.php on line 30
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ShowEntries has a deprecated constructor in /www/plugins/moziloGB/ShowEntries.php on line 5
Ich möchte diese Thema wieder nach vorne schieben.
Bei mir die gleiche Fehlermeldung mit PHP 7
moziloGB unter PHP 7
moziloGB/ShowEntries.php zeile 28
versucht mal die zeile
function ShowEntries($dbname,$tmpl,$gbsettings,$gblanguage) {
in
function __construct($dbname,$tmpl,$gbsettings,$gblanguage) {
zu ändern
lg stefanbe
Hallo Stefanbe,
Zitat von: stefanbe am 25. Oktober 2016, 08:58:47
moziloGB/ShowEntries.php zeile 28
versucht mal die zeile
function ShowEntries($dbname,$tmpl,$gbsettings,$gblanguage) {
in
function __construct($dbname,$tmpl,$gbsettings,$gblanguage) {
zu ändern
lg stefanbe
das passt hatte das auch schon rausgefunden, nun muss noch in der admin.php
Zeile 40 das function moziloGBAdmin($settings,$gblanguage) { mit dem function __construct($settings,$gblanguage) { ersetzt werden...
Zeile 50 das $this->ShowEntries($this->curent_db,"",$settings,$gblanguage); mit dem parent::__construct($this->curent_db,"",$settings,$gblanguage); ersetzt werden...
mfg
Aggi
super Aggi
habs geändert
lg stefanbe