From b32dbd3076ebf78704c15b0a9035ca197a3d1521 Mon Sep 17 00:00:00 2001 From: Andy Gaskell Date: Thu, 9 Mar 2017 18:37:21 +0000 Subject: [PATCH] Just a tweak to avoid a warning in PHP7 Hi Christian Just a minor tweak here, hope this is useful. At the moment the PHP4 style constructor gives a warning in PHP7. The warning looks like... PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemfieldsattachment has a deprecated constructor in plugins/system/fieldsattachment/fieldsattachment.php on line 35 More info... http://php.net/manual/en/migration70.deprecated.php#migration70.deprecated.php4-constructors https://cweiske.de/tagebuch/php4-constructors-php7.htm --- admin/extensions/system_fieldsattachment/fieldsattachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/extensions/system_fieldsattachment/fieldsattachment.php b/admin/extensions/system_fieldsattachment/fieldsattachment.php index 647aacb..d49f053 100644 --- a/admin/extensions/system_fieldsattachment/fieldsattachment.php +++ b/admin/extensions/system_fieldsattachment/fieldsattachment.php @@ -52,7 +52,7 @@ class plgSystemfieldsattachment extends JPlugin * @param array $config An array that holds the plugin configuration * @since 1.0 */ - function plgSystemfieldsattachment( $subject, $config) + function __construct( $subject, $config) {