]> git.mxchange.org Git - friendica-addons.git/blobdiff - fortunate/fortunate.php
resize images to 300px for frio compliance
[friendica-addons.git] / fortunate / fortunate.php
index 8c15caa6d9a6df18732d8fb9aa6796f4a22f6159..b92f6085ff6ffdb1ed64b4169c71485a54a93075 100644 (file)
@@ -4,6 +4,7 @@
  * Description: Add a random fortune cookie at the bottom of every pages. [Requires manual confguration.]
  * Version: 1.0
  * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
+ * Status: Unsupported
  */
 use Friendica\Core\Addon;
 use Friendica\Util\Network;
@@ -28,8 +29,8 @@ function fortunate_uninstall()
 
 function fortunate_fetch(&$a, &$b)
 {
-       $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' 
-               . $a->get_baseurl() . '/addon/fortunate/fortunate.css' . '" media="all" />' . "\r\n";
+       $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'
+               . $a->getBaseURL() . '/addon/fortunate/fortunate.css' . '" media="all" />' . "\r\n";
 
        if (FORTUNATE_SERVER != 'hostname.com') {
                $s = Network::fetchUrl('http://' . FORTUNATE_SERVER . '/cookie.php?numlines=2&equal=1&rand=' . mt_rand());