From 5c71ccba987f1d83482025508b356a22dcf5151c Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 5 Nov 2013 18:20:37 -0800 Subject: add shameless plug if they've not got zot, and add photo favicon to photos pages --- boot.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 99ec5de32..e2129f6f5 100755 --- a/boot.php +++ b/boot.php @@ -1530,8 +1530,14 @@ function remote_user() { function notice($s) { $a = get_app(); if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array(); - if($a->interactive) + if($a->interactive) { + // shameless plug, permission is denied and they have no identity. + // There's a fairly good chance that they've not got zot. + if((stristr($s,t('permission denied'))) && (! get_observer_hash())) { + $s .= '
' . t('Got Zot?') . ''; + } $_SESSION['sysmsg'][] = $s; + } } -- cgit v1.2.3