Browse Source

Fixes for #3010:

- used static call, still App::get_baseurl() wraps it into an object-referencing
  call which seems to be a bit redundant?
- added spaces around dot (see one line below)

Signed-off-by: Roland Häder <roland@mxchange.org>
pull/3010/head
Roland Häder 4 years ago
parent
commit
b5776ab959
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      include/notifier.php
  2. +1
    -1
      include/oembed.php

+ 0
- 1
include/notifier.php View File

@ -424,7 +424,6 @@ function notifier_run(&$argv, &$argc){
$url_recipients[$probed_contact["notify"]] = $probed_contact["notify"];
}
// Send a salmon to the parent author
$probed_contact = probe_url($thr_parent[0]['author-link']);
if ($probed_contact["notify"] != "") {
logger('Notify parent author '.$probed_contact["url"].': '.$probed_contact["notify"]);


+ 1
- 1
include/oembed.php View File

@ -264,7 +264,7 @@ function oembed_iframe($src, $width, $height) {
}
$width = '100%';
$s = $a->get_baseurl() . '/oembed/'.base64url_encode($src);
$s = App::get_baseurl() . '/oembed/' . base64url_encode($src);
return '<iframe onload="resizeIframe(this);" class="embed_rich" height="' . $height . '" width="' . $width . '" src="' . $s . '" allowfullscreen scrolling="no" frameborder="no">' . t('Embedded content') . '</iframe>';
}


Loading…
Cancel
Save