tbrehm
2008-12-23 dd2bf5899faab36e02c2a9a2d8e7e907962d539f
Check if onInstall function exists in plugins.
1 files modified
2 ■■■ changed files
install/lib/installer_base.lib.php 2 ●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -875,7 +875,7 @@
                        include_once($install_dir.'/server/plugins-available/'.$file);
                        $plugin_name = substr($file,0,-8);
                        $tmp = new $plugin_name;
                        if($tmp->onInstall()) {
                        if(method_exists($tmp,'onInstall') && $tmp->onInstall()) {
                            if(!@is_link($install_dir.'/server/plugins-enabled/'.$file)) @symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-enabled/'.$file);
                            if (strpos($file, '_core_plugin') !== false) {
                                if(!@is_link($install_dir.'/server/plugins-core/'.$file)) @symlink($install_dir.'/server/plugins-available/'.$file, $install_dir.'/server/plugins-core/'.$file);