]> git.mxchange.org Git - friendica.git/blobdiff - addon/randplace/randplace.php
localise tictac
[friendica.git] / addon / randplace / randplace.php
index 2e1bd33ac21bbaf5a99f865986fa69359505f48e..d7ea65c9d23e0b2083b2c38bf50f25d6afdf301c 100644 (file)
@@ -43,7 +43,7 @@ function randplace_install() {
         */
 
        register_hook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
-       register_hook('settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+       register_hook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
 
        logger("installed randplace");
 }
@@ -61,7 +61,7 @@ function randplace_uninstall() {
 
        unregister_hook('post_local',    'addon/randplace/randplace.php', 'randplace_post_hook');
        unregister_hook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
-       unregister_hook('settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+       unregister_hook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
 
 
        logger("removed randplace");
@@ -110,7 +110,7 @@ function randplace_post_hook($a, &$item) {
        $cities = array();
        $zones = timezone_identifiers_list();
        foreach($zones as $zone) {
-               if(strpos($zone,'/'))
+               if((strpos($zone,'/')) && (! stristr($zone,'US/')) && (! stristr($zone,'Etc/')))
                        $cities[] = str_replace('_', ' ',substr($zone,strpos($zone,'/') + 1));
        }