Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
dd2bf589
Commit
dd2bf589
authored
Dec 23, 2008
by
tbrehm
Browse files
Check if onInstall function exists in plugins.
parent
043a0a32
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
dd2bf589
...
...
@@ -875,7 +875,7 @@ class installer_base {
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment