Remove trailing slash in update_
calls
This commit is contained in:
parent
eff7740a67
commit
584e7a7e6d
3 changed files with 4 additions and 4 deletions
|
@ -493,7 +493,7 @@ class Conversation
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
$live_update_div = '<div id="live-notes"></div>' . "\r\n"
|
$live_update_div = '<div id="live-notes"></div>' . "\r\n"
|
||||||
. "<script> var profile_uid = " . $this->session->getLocalUserId()
|
. "<script> var profile_uid = " . $this->session->getLocalUserId()
|
||||||
. "; var netargs = '/?f='; </script>\r\n";
|
. "; var netargs = '?f='; </script>\r\n";
|
||||||
}
|
}
|
||||||
} elseif ($mode === 'display') {
|
} elseif ($mode === 'display') {
|
||||||
$items = $this->addChildren($items, false, $order, $uid, $mode);
|
$items = $this->addChildren($items, false, $order, $uid, $mode);
|
||||||
|
@ -520,7 +520,7 @@ class Conversation
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
$live_update_div = '<div id="live-contact"></div>' . "\r\n"
|
$live_update_div = '<div id="live-contact"></div>' . "\r\n"
|
||||||
. "<script> var profile_uid = -1; var netargs = '" . substr($this->args->getCommand(), 8)
|
. "<script> var profile_uid = -1; var netargs = '" . substr($this->args->getCommand(), 8)
|
||||||
."/?f='; </script>\r\n";
|
."?f='; </script>\r\n";
|
||||||
}
|
}
|
||||||
} elseif ($mode === 'search') {
|
} elseif ($mode === 'search') {
|
||||||
$live_update_div = '<div id="live-search"></div>' . "\r\n";
|
$live_update_div = '<div id="live-search"></div>' . "\r\n";
|
||||||
|
|
|
@ -642,7 +642,7 @@ return [
|
||||||
|
|
||||||
'/update_community[/{content}]' => [Module\Update\Community::class, [R::GET]],
|
'/update_community[/{content}]' => [Module\Update\Community::class, [R::GET]],
|
||||||
|
|
||||||
'/update_display[/]' => [Module\Update\Display::class, [R::GET]],
|
'/update_display' => [Module\Update\Display::class, [R::GET]],
|
||||||
|
|
||||||
'/update_network' => [
|
'/update_network' => [
|
||||||
'[/]' => [Module\Update\Network::class, [R::GET]],
|
'[/]' => [Module\Update\Network::class, [R::GET]],
|
||||||
|
|
|
@ -590,7 +590,7 @@ function liveUpdate(src) {
|
||||||
|
|
||||||
var orgHeight = $("section").height();
|
var orgHeight = $("section").height();
|
||||||
|
|
||||||
var udargs = ((netargs.length) ? '/' + netargs : '');
|
var udargs = ((netargs.length) ? netargs : '');
|
||||||
|
|
||||||
var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&force=' + (force ? 1 : 0) + '&item=' + update_item;
|
var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&force=' + (force ? 1 : 0) + '&item=' + update_item;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue