aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-10 17:47:11 -0800
committerfriendica <info@friendica.com>2012-01-10 17:47:11 -0800
commitcf7008e57509b271dccd6971f3bef46ace8a9687 (patch)
treed048c9416af3f7394d99f2fa4bcf280506ed226f /include/plugin.php
parent375cb82124aae2faac9f44b93b63b2f056871a0b (diff)
downloadvolse-hubzilla-cf7008e57509b271dccd6971f3bef46ace8a9687.tar.gz
volse-hubzilla-cf7008e57509b271dccd6971f3bef46ace8a9687.tar.bz2
volse-hubzilla-cf7008e57509b271dccd6971f3bef46ace8a9687.zip
post preview to loozah
Diffstat (limited to 'include/plugin.php')
-rw-r--r--include/plugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 9f2832981..fe325ac3b 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -19,7 +19,7 @@ function uninstall_plugin($plugin){
if (! function_exists('install_plugin')){
function install_plugin($plugin){
logger("Addons: installing " . $plugin);
- $t = filemtime('addon/' . $plugin . '/' . $plugin . '.php');
+ $t = @filemtime('addon/' . $plugin . '/' . $plugin . '.php');
@include_once('addon/' . $plugin . '/' . $plugin . '.php');
if(function_exists($plugin . '_install')) {
$func = $plugin . '_install';
@@ -33,6 +33,10 @@ function install_plugin($plugin){
$plugin_admin
);
}
+ else {
+ logger("Addons: FAILED installing " . $plugin);
+ }
+
}}
// reload all updated plugins