mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-28 13:54:21 +02:00
rename App Methods
- rename get_baseurl() to getBaseURL()
This commit is contained in:
parent
cac6cbc235
commit
1454abfdb4
62 changed files with 523 additions and 523 deletions
|
@ -231,7 +231,7 @@ function statusnet_settings(App $a, &$s)
|
|||
if (!local_user()) {
|
||||
return;
|
||||
}
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/statusnet/statusnet.css' . '" media="all" />' . "\r\n";
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->getBaseURL() . '/addon/statusnet/statusnet.css' . '" media="all" />' . "\r\n";
|
||||
/* * *
|
||||
* 1) Check that we have a base api url and a consumer key & secret
|
||||
* 2) If no OAuthtoken & stuff is present, generate button to get some
|
||||
|
@ -687,7 +687,7 @@ function statusnet_prepare_body(App $a, &$b)
|
|||
}
|
||||
|
||||
$item = $b["item"];
|
||||
$item["plink"] = $a->get_baseurl() . "/display/" . $a->user["nickname"] . "/" . $item["parent"];
|
||||
$item["plink"] = $a->getBaseURL() . "/display/" . $a->user["nickname"] . "/" . $item["parent"];
|
||||
|
||||
$condition = ['uri' => $item["thr-parent"], 'uid' => local_user()];
|
||||
$orig_post = Item::selectFirst(['author-link', 'uri'], $condition);
|
||||
|
@ -1488,7 +1488,7 @@ function statusnet_convertmsg(App $a, $body, $no_tags = false)
|
|||
if ($mtch[1] == "#") {
|
||||
// Replacing the hash tags that are directed to the GNU Social server with internal links
|
||||
$snhash = "#[url=" . $mtch[2] . "]" . $mtch[3] . "[/url]";
|
||||
$frdchash = '#[url=' . $a->get_baseurl() . '/search?tag=' . rawurlencode($mtch[3]) . ']' . $mtch[3] . '[/url]';
|
||||
$frdchash = '#[url=' . $a->getBaseURL() . '/search?tag=' . rawurlencode($mtch[3]) . ']' . $mtch[3] . '[/url]';
|
||||
$body = str_replace($snhash, $frdchash, $body);
|
||||
|
||||
$str_tags .= $frdchash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue