]> git.mxchange.org Git - friendica.git/blobdiff - include/plugin.php
repeated items from ostatus and diaspora are now using the share-element.
[friendica.git] / include / plugin.php
index d6f81b8172b7d00dda946b1ee17e5781f14c002a..db3224f29658ff2a1fe1ca8e302388ab77e353b3 100644 (file)
@@ -8,7 +8,7 @@ function uninstall_plugin($plugin){
        q("DELETE FROM `addon` WHERE `name` = '%s' ",
                dbesc($plugin)
        );
-
+    
        @include_once('addon/' . $plugin . '/' . $plugin . '.php');
        if(function_exists($plugin . '_uninstall')) {
                $func = $plugin . '_uninstall';
@@ -18,7 +18,6 @@ function uninstall_plugin($plugin){
 
 if (! function_exists('install_plugin')){
 function install_plugin($plugin) {
-
        // silently fail if plugin was removed
 
        if(! file_exists('addon/' . $plugin . '/' . $plugin . '.php'))
@@ -77,7 +76,7 @@ function reload_plugins() {
                                $pl = trim($pl);
 
                                $fname = 'addon/' . $pl . '/' . $pl . '.php';
-                               
+
                                if(file_exists($fname)) {
                                        $t = @filemtime($fname);
                                        foreach($installed as $i) {
@@ -162,7 +161,6 @@ function call_hooks($name, &$data = null) {
        $a = get_app();
 
        if((is_array($a->hooks)) && (array_key_exists($name,$a->hooks))) {
-       logger('call_hooks ' . print_r($a->hooks[$name],true) , LOGGER_DEBUG);
                foreach($a->hooks[$name] as $hook) {
                        @include_once($hook[0]);
                        if(function_exists($hook[1])) {
@@ -257,6 +255,7 @@ function get_theme_info($theme){
                'author' => array(),
                'maintainer' => array(),
                'version' => "",
+               'credits' => "",
                'experimental' => false,
                'unsupported' => false
        );