]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #1460 from FlxAlbroscheit/develop
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 5 Apr 2015 09:37:05 +0000 (11:37 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 5 Apr 2015 09:37:05 +0000 (11:37 +0200)
Issue 1163: Feature allowing desktop-notifications

1  2 
mod/settings.php

diff --combined mod/settings.php
index 5ae30d7d366274969a767ebbb373a5e3dae2c4c4,93109fc0cf959b0af21bac2243de9fd028d13a25..67f8d69a2ed94cd00dec023156cbcb8dfd5a8d53
@@@ -16,11 -16,6 +16,11 @@@ function get_theme_config_file($theme)
  
  function settings_init(&$a) {
  
 +      if(! local_user()) {
 +              notice( t('Permission denied.') . EOL );
 +              return;
 +      }
 +
        // APC deactivated, since there are problems with PHP 5.5
        //if (function_exists("apc_delete")) {
        //      $toDelete = new APCIterator('user', APC_ITER_VALUE);
@@@ -598,7 -593,7 +598,7 @@@ function settings_content(&$a) 
        nav_set_selected('settings');
  
        if(! local_user()) {
 -              notice( t('Permission denied.') . EOL );
 +              #notice( t('Permission denied.') . EOL );
                return;
        }
  
                '$notify7'  => array('notify7', t('You are tagged in a post'), ($notify & NOTIFY_TAGSELF), NOTIFY_TAGSELF, ''),
                '$notify8'  => array('notify8', t('You are poked/prodded/etc. in a post'), ($notify & NOTIFY_POKE), NOTIFY_POKE, ''),
  
+               '$desktop_notifications' => t('Activate desktop notifications'),
+                 '$desktop_notifications_note' => t('Note: This is an experimental feature, as being not supported by each browser'),
+                 '$desktop_notifications_success_message' => t('You will now receive desktop notifications!'),
+                 
                '$email_textonly' => array('email_textonly', t('Text-only notification emails'),
                                                                        get_pconfig(local_user(),'system','email_textonly'),
                                                                        t('Send text only notification emails, without the html part')),