Résolution du bug #2930921 : le titre de la page n'était pas mis à jour avec l'AJAX
Ajout de la fonctionnalité #2930930 : l'url permanente du strip est maintenant indiquée
This commit is contained in:
parent
67a61874f1
commit
e7d737af1b
9 changed files with 31 additions and 0 deletions
|
|
@ -81,6 +81,25 @@ function getNavigation($id, $last, Lang $lang)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the permanent link for the strip
|
||||
*
|
||||
* @param integer $id The id of the actual strip
|
||||
* @param Lang $lang The Lang object use for the actual user
|
||||
* @return string The permanent link for the actual strip
|
||||
*/
|
||||
function getPermanentLink($id, Lang $lang)
|
||||
{
|
||||
$url = Config::getUrl().'/'.Config::getIndex().'?id=';
|
||||
$nav_lang = '';
|
||||
if (isset($_GET['lang'])) {
|
||||
$nav_lang = '&lang='.$lang;
|
||||
}
|
||||
|
||||
return $url.$id.$nav_lang;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return an array with all navigation link
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue