]> git.mxchange.org Git - friendica-addons.git/blob - buglink/buglink.php
8091f2f6da3d76998f78f7b365a822c5db2f7e1f
[friendica-addons.git] / buglink / buglink.php
1 <?php
2 /**
3  * Name: BugLink
4  * Description: Show link to Friendica bug site at bottom of page
5  * Version: 1.0
6  * Author: Mike Macgirvin <mike@macgirvin.com>
7  */
8
9
10 function buglink_install() {
11         register_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
12 }
13
14 function piwik_uninstall() {
15         unregister_hook('page_end', 'addon/buglink/buglink.php', 'buglink_active');
16 }
17
18
19 function buglink_active(&$a,&$b) {
20         $b .= '<div style="position: fixed; bottom: 5px; left: 5px;"><a href="http://bugs.friendica.com" title="' . t('Report Bug') . '"><img src="addon/buglink/bug-x.gif" alt="' . t('Report Bug') . '" /></a></div>';
21