aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-06-19 15:42:06 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-06-19 15:42:06 +0200
commitb650183cd4b82325dcaf74a42386882ef1802750 (patch)
treee0d8809cc9a3f6feef124c79de66bf20d8007306 /boot.php
parent10eb79a629278e11a0ed56193adef9895ff73638 (diff)
downloadvolse-hubzilla-b650183cd4b82325dcaf74a42386882ef1802750.tar.gz
volse-hubzilla-b650183cd4b82325dcaf74a42386882ef1802750.tar.bz2
volse-hubzilla-b650183cd4b82325dcaf74a42386882ef1802750.zip
Save in db if addon define "$addon_plugin_admin" function. Add "plugin_admin" column to "addon" table
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 3f69fd084..555d2405c 100644
--- a/boot.php
+++ b/boot.php
@@ -6,7 +6,7 @@ ini_set('pcre.backtrack_limit', 250000);
define ( 'FRIENDIKA_VERSION', '2.2.1015' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
-define ( 'DB_UPDATE_VERSION', 1063 );
+define ( 'DB_UPDATE_VERSION', 1064 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
@@ -477,9 +477,13 @@ function install_plugin($plugin){
if(function_exists($plugin . '_install')) {
$func = $plugin . '_install';
$func();
- $r = q("INSERT INTO `addon` (`name`, `installed`, `timestamp`) VALUES ( '%s', 1, %d ) ",
+
+ $plugin_admin = (function_exists($plugin."_plugin_admin")?1:0);
+
+ $r = q("INSERT INTO `addon` (`name`, `installed`, `timestamp`, `plugin_admin`) VALUES ( '%s', 1, %d , %d ) ",
dbesc($plugin),
- intval($t)
+ intval($t),
+ $plugin_admin
);
}
}}