mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 02:18:48 +00: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
|
@ -111,8 +111,8 @@ function pumpio_registerclient(App $a, $host)
|
|||
$params["contacts"] = $adminlist[0];
|
||||
$params["application_type"] = "native";
|
||||
$params["application_name"] = $application_name;
|
||||
$params["logo_url"] = $a->get_baseurl()."/images/friendica-256.png";
|
||||
$params["redirect_uris"] = $a->get_baseurl()."/pumpio/connect";
|
||||
$params["logo_url"] = $a->getBaseURL()."/images/friendica-256.png";
|
||||
$params["redirect_uris"] = $a->getBaseURL()."/pumpio/connect";
|
||||
|
||||
logger("pumpio_registerclient: ".$url." parameters ".print_r($params, true), LOGGER_DEBUG);
|
||||
|
||||
|
@ -163,7 +163,7 @@ function pumpio_connect(App $a)
|
|||
}
|
||||
|
||||
// The callback URL is the script that gets called after the user authenticates with pumpio
|
||||
$callback_url = $a->get_baseurl()."/pumpio/connect";
|
||||
$callback_url = $a->getBaseURL()."/pumpio/connect";
|
||||
|
||||
// Let's begin. First we need a Request Token. The request token is required to send the user
|
||||
// to pumpio's login page.
|
||||
|
@ -200,7 +200,7 @@ function pumpio_connect(App $a)
|
|||
if ($success) {
|
||||
logger("pumpio_connect: authenticated");
|
||||
$o = L10n::t("You are now authenticated to pumpio.");
|
||||
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.L10n::t("return to the connector page").'</a>';
|
||||
$o .= '<br /><a href="'.$a->getBaseURL().'/settings/connectors">'.L10n::t("return to the connector page").'</a>';
|
||||
} else {
|
||||
logger("pumpio_connect: could not connect");
|
||||
$o = 'Could not connect to pumpio. Refresh the page or try again later.';
|
||||
|
@ -233,7 +233,7 @@ function pumpio_settings(App $a, &$s)
|
|||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/pumpio/pumpio.css' . '" media="all" />' . "\r\n";
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->getBaseURL() . '/addon/pumpio/pumpio.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
/* Get the current state of our config variables */
|
||||
|
||||
|
@ -283,7 +283,7 @@ function pumpio_settings(App $a, &$s)
|
|||
$s .= '<div id="pumpio-password-wrapper">';
|
||||
if (($oauth_token == "") || ($oauth_token_secret == "")) {
|
||||
$s .= '<div id="pumpio-authenticate-wrapper">';
|
||||
$s .= '<a href="'.$a->get_baseurl().'/pumpio/connect">'.L10n::t("Authenticate your pump.io connection").'</a>';
|
||||
$s .= '<a href="'.$a->getBaseURL().'/pumpio/connect">'.L10n::t("Authenticate your pump.io connection").'</a>';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
} else {
|
||||
$s .= '<div id="pumpio-import-wrapper">';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue