rename App Methods

- rename get_baseurl() to getBaseURL()
This commit is contained in:
Philipp Holzer 2018-10-09 20:13:22 +02:00
parent cac6cbc235
commit 1454abfdb4
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
62 changed files with 523 additions and 523 deletions

View file

@ -36,7 +36,7 @@ function remote_permissions_settings(&$a,&$o) {
/* 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/remote_permissions/settings.css' . '" media="all" />' . "\r\n";
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->getBaseURL() . '/addon/remote_permissions/settings.css' . '" media="all" />' . "\r\n";
/* Get the current state of our config variable */
@ -78,7 +78,7 @@ function remote_permissions_content($a, $item_copy) {
return;
// Find out if the contact lives here
$baseurl = $a->get_baseurl();
$baseurl = $a->getBaseURL();
$baseurl = substr($baseurl, strpos($baseurl, '://') + 3);
if(strpos($r[0]['url'], $baseurl) === false)
return;