aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/plugins.class.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-10 14:03:54 +0100
committerplegall <plg@piwigo.org>2015-12-10 14:03:54 +0100
commited8db3da2787d8068f18e0ddc806294f759b8010 (patch)
treeac5aedac9d475fa8130e058fd2e8412ac4368cb6 /admin/include/plugins.class.php
parentfa10e0945ecd45bfe78a2c8fb015a43092b4944b (diff)
bug #385 compatibility with PHP7
* replace old-style constructor with PHP5-style constructor (__construct) * do not call set_magic_quotes_runtime() any longer * avoid automatic conversion from array to string
Diffstat (limited to 'admin/include/plugins.class.php')
-rw-r--r--admin/include/plugins.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/plugins.class.php b/admin/include/plugins.class.php
index 71093a6c1..5f258f836 100644
--- a/admin/include/plugins.class.php
+++ b/admin/include/plugins.class.php
@@ -69,7 +69,7 @@ class plugins
/**
* Initialize $fs_plugins and $db_plugins_by_id
*/
- function plugins()
+ function __construct()
{
$this->get_fs_plugins();
@@ -716,4 +716,4 @@ DELETE FROM '. PLUGINS_TABLE .'
$this->fs_plugins = $active_plugins + $inactive_plugins + $not_installed;
}
}
-?> \ No newline at end of file
+?>