From 931a4fafe316b23bacf92ac1ff35f9b8467415dd Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 29 Apr 2016 21:38:36 +0200 Subject: get rid of the unused ispublic variable --- Zotlabs/Module/Cal.php | 2 +- Zotlabs/Module/Editpost.php | 1 - Zotlabs/Module/Photos.php | 2 +- include/conversation.php | 1 - view/js/acl.js | 5 +---- view/js/mod_photos.js | 4 ---- view/js/mod_settings.js | 3 --- view/tpl/jot-header.tpl | 11 ----------- view/tpl/jot.tpl | 2 +- 9 files changed, 4 insertions(+), 27 deletions(-) diff --git a/Zotlabs/Module/Cal.php b/Zotlabs/Module/Cal.php index 89967bca1..958ce5aa6 100644 --- a/Zotlabs/Module/Cal.php +++ b/Zotlabs/Module/Cal.php @@ -38,7 +38,7 @@ class Cal extends \Zotlabs\Web\Controller { head_set_icon(\App::$data['channel']['xchan_photo_s']); - \App::$page['htmlhead'] .= "" ; + \App::$page['htmlhead'] .= "" ; } diff --git a/Zotlabs/Module/Editpost.php b/Zotlabs/Module/Editpost.php index fd9912fe9..1c2c2a30b 100644 --- a/Zotlabs/Module/Editpost.php +++ b/Zotlabs/Module/Editpost.php @@ -83,7 +83,6 @@ class Editpost extends \Zotlabs\Web\Controller { } $x = array( - 'ispublic' => ' ', 'nickname' => $channel['channel_address'], 'editor_autocomplete'=> true, 'bbco_autocomplete'=> 'bbcode', diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 15a1f4d9c..2b7f5525f 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -42,7 +42,7 @@ class Photos extends \Zotlabs\Web\Controller { head_set_icon(\App::$data['channel']['xchan_photo_s']); - \App::$page['htmlhead'] .= "" ; + \App::$page['htmlhead'] .= "" ; } diff --git a/include/conversation.php b/include/conversation.php index 14fee19b2..b1b47df39 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1175,7 +1175,6 @@ function status_editor($a, $x, $popup = false) { '$pretext' => ((x($x,'pretext')) ? $x['pretext'] : ''), '$geotag' => $geotag, '$nickname' => $x['nickname'], - '$ispublic' => ((x($x,'ispublic')) ? $x['ispublic'] : t('Visible to everybody')), '$linkurl' => t('Please enter a link URL:'), '$term' => t('Tag term:'), '$whereareu' => t('Where are you right now?'), diff --git a/view/js/acl.js b/view/js/acl.js index 65f1009ed..7940a9bdc 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -196,16 +196,13 @@ ACL.prototype.update_view = function() { $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock'); $('#jot-public').show(); $('.profile-jot-net input').attr('disabled', false); - if(typeof editor !== 'undefined' && editor !== false) { - $('#profile-jot-desc').html(ispublic); - } } else { that.showall.removeClass("btn-warning").addClass("btn-default"); /* jot acl */ $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock'); $('#jot-public').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); - $('#profile-jot-desc').html(' '); + } $("#acl-list-content .acl-list-item").each(function() { $(this).removeClass("groupshow grouphide"); diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index 34e2e3f25..8af75b4eb 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -1,10 +1,6 @@ /** * JavaScript used by mod/photos */ - -// is this variable used anywhere? -var ispublic = aStr.everybody; - $(document).ready(function() { $("#photo-edit-newtag").contact_autocomplete(baseurl + '/acl', 'p', false, function(data) { diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js index 3fd57995a..9a7550ac1 100644 --- a/view/js/mod_settings.js +++ b/view/js/mod_settings.js @@ -2,9 +2,6 @@ * JavaScript used by mod/settings */ -// is this used anywhere? -var ispublic = aStr.everybody; - $(document).ready(function() { $('form').areYouSure({'addRemoveFieldsMarksDirty':true, 'message': aStr['leavethispage'] }); // Warn user about unsaved settings diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 085710f55..bdcca71ac 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -1,7 +1,6 @@