aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-28 21:35:14 -0700
committerfriendica <info@friendica.com>2012-04-28 21:35:14 -0700
commitb3a71e4327bbe618dbdd15428a4614f58b4e848c (patch)
tree16d6177e9a48159f5a3e0b75bb0298144367b504
parent920d40acf43adb584a33555bfd73e2e5d5f1ebd0 (diff)
downloadvolse-hubzilla-b3a71e4327bbe618dbdd15428a4614f58b4e848c.tar.gz
volse-hubzilla-b3a71e4327bbe618dbdd15428a4614f58b4e848c.tar.bz2
volse-hubzilla-b3a71e4327bbe618dbdd15428a4614f58b4e848c.zip
indicate successful updates
-rw-r--r--boot.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index cfdadcd19..616e152f9 100644
--- a/boot.php
+++ b/boot.php
@@ -671,7 +671,7 @@ if(! function_exists('check_config')) {
if($retval) {
//send the administrator an e-mail
$email_tpl = get_intltext_template("update_fail_eml.tpl");
- $email_tpl = replace_macros($email_tpl, array(
+ $email_msg = replace_macros($email_tpl, array(
'$sitename' => $a->config['sitename'],
'$siteurl' => $a->get_baseurl(),
'$update' => $x,
@@ -679,13 +679,16 @@ if(! function_exists('check_config')) {
));
$subject=sprintf(t('Update Error at %s'), $a->get_baseurl());
- mail($a->config['admin_email'], $subject, $text,
+ mail($a->config['admin_email'], $subject, $email_msg,
'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
. 'Content-type: text/plain; charset=UTF-8' . "\n"
. 'Content-transfer-encoding: 8bit' );
//try the logger
logger('CRITICAL: Update Failed: '. $x);
}
+ else
+ set_config('database','update_' . $x, 'success');
+
}
}
set_config('system','build', DB_UPDATE_VERSION);
@@ -727,9 +730,10 @@ if(! function_exists('check_config')) {
foreach($installed as $i) {
if(! in_array($i['name'],$plugins_arr)) {
uninstall_plugin($i['name']);
- }
- else
+ }
+ else {
$installed_arr[] = $i['name'];
+ }
}
}