replaced $return_url to $return_path to make it more clear that it is a relative path to the Friendica baseurl
This commit is contained in:
parent
a9510ffcdf
commit
3edad1591e
12 changed files with 44 additions and 44 deletions
|
@ -1469,7 +1469,7 @@ function photos_content(App $a)
|
|||
if (count($linked_items)) {
|
||||
$cmnt_tpl = get_markup_template('comment_item.tpl');
|
||||
$tpl = get_markup_template('photo_item.tpl');
|
||||
$return_url = $a->cmd;
|
||||
$return_path = $a->cmd;
|
||||
|
||||
if ($can_post || Security::canWriteToUserWall($owner_uid)) {
|
||||
$like_tpl = get_markup_template('like_noshare.tpl');
|
||||
|
@ -1486,7 +1486,7 @@ function photos_content(App $a)
|
|||
if (($can_post || Security::canWriteToUserWall($owner_uid))) {
|
||||
$comments .= replace_macros($cmnt_tpl, [
|
||||
'$return_path' => '',
|
||||
'$jsreload' => $return_url,
|
||||
'$jsreload' => $return_path,
|
||||
'$id' => $link_item['id'],
|
||||
'$parent' => $link_item['id'],
|
||||
'$profile_uid' => $owner_uid,
|
||||
|
@ -1525,7 +1525,7 @@ function photos_content(App $a)
|
|||
if (($can_post || Security::canWriteToUserWall($owner_uid))) {
|
||||
$comments .= replace_macros($cmnt_tpl,[
|
||||
'$return_path' => '',
|
||||
'$jsreload' => $return_url,
|
||||
'$jsreload' => $return_path,
|
||||
'$id' => $link_item['id'],
|
||||
'$parent' => $link_item['id'],
|
||||
'$profile_uid' => $owner_uid,
|
||||
|
@ -1585,7 +1585,7 @@ function photos_content(App $a)
|
|||
if (($can_post || Security::canWriteToUserWall($owner_uid))) {
|
||||
$comments .= replace_macros($cmnt_tpl, [
|
||||
'$return_path' => '',
|
||||
'$jsreload' => $return_url,
|
||||
'$jsreload' => $return_path,
|
||||
'$id' => $item['item_id'],
|
||||
'$parent' => $item['parent'],
|
||||
'$profile_uid' => $owner_uid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue