Remove "f" parameter / network page parameter cleanup
This commit is contained in:
parent
ac04ff88b8
commit
b83f328983
11 changed files with 34 additions and 75 deletions
|
|
@ -127,7 +127,7 @@ function frio_item_photo_links(App $a, &$body_info)
|
|||
function frio_item_photo_menu(App $a, &$arr)
|
||||
{
|
||||
foreach ($arr['menu'] as $k => $v) {
|
||||
if (strpos($v, 'poke/?f=&c=') === 0 || strpos($v, 'message/new/') === 0) {
|
||||
if (strpos($v, 'poke?c=') === 0 || strpos($v, 'message/new/') === 0) {
|
||||
$v = 'javascript:addToModal(\'' . $v . '\'); return false;';
|
||||
$arr['menu'][$k] = $v;
|
||||
}
|
||||
|
|
@ -181,7 +181,7 @@ function frio_contact_photo_menu(App $a, &$args)
|
|||
// Add to pm and poke links a new key with the value 'modal'.
|
||||
// Later we can make conditions in the corresponing templates (e.g.
|
||||
// contact_template.tpl)
|
||||
if (strpos($pokelink, 'poke/?f=&c=' . $cid) !== false) {
|
||||
if (strpos($pokelink, 'poke?c=' . $cid) !== false) {
|
||||
$args['menu']['poke'][3] = 'modal';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue