aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-07 17:22:40 -0700
committerfriendica <info@friendica.com>2013-07-07 17:22:40 -0700
commit6e880cfd4954c4a044358a823fac4dc9d5467a6b (patch)
treea49473747b8d253e54bfc814ba8f7d6e6044df1d /mod
parent8b9f2f8ef766c169e77a34c72118d14beb2b21de (diff)
downloadvolse-hubzilla-6e880cfd4954c4a044358a823fac4dc9d5467a6b.tar.gz
volse-hubzilla-6e880cfd4954c4a044358a823fac4dc9d5467a6b.tar.bz2
volse-hubzilla-6e880cfd4954c4a044358a823fac4dc9d5467a6b.zip
use current channel photo for favicon where applicable - might be browser dependent but seems to work on FF
Diffstat (limited to 'mod')
-rw-r--r--mod/connections.php5
-rw-r--r--mod/message.php1
-rw-r--r--mod/network.php3
-rw-r--r--mod/settings.php5
4 files changed, 14 insertions, 0 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 89c0bcbc0..1b97412d4 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -23,6 +23,11 @@ function connections_init(&$a) {
$a->data['abook'] = $r[0];
}
}
+
+ $channel = $a->get_channel();
+ if($channel)
+ head_set_icon($channel['xchan_photo_s']);
+
}
function connections_aside(&$a) {
diff --git a/mod/message.php b/mod/message.php
index 54615f081..f5a2101ab 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -206,6 +206,7 @@ function message_content(&$a) {
}
$channel = $a->get_channel();
+ head_set_icon($channel['xchan_photo_s']);
$tpl = get_markup_template('mail_head.tpl');
$header = replace_macros($tpl, array(
diff --git a/mod/network.php b/mod/network.php
index aa134eece..0f4b4f7e8 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -7,6 +7,9 @@ function network_init(&$a) {
notice( t('Permission denied.') . EOL);
return;
}
+
+ $channel = $a->get_channel();
+ head_set_icon($channel['xchan_photo_s']);
$is_a_date_query = false;
diff --git a/mod/settings.php b/mod/settings.php
index e830d7070..164a2a8a0 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -580,6 +580,11 @@ function settings_content(&$a) {
return;
}
+
+ $channel = $a->get_channel();
+ if($channel)
+ head_set_icon($channel['xchan_photo_s']);
+
// if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) {
// notice( t('Permission denied.') . EOL );
// return;