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:
Leblanc Simon 2010-01-20 02:30:45 +00:00
commit e7d737af1b
9 changed files with 31 additions and 0 deletions

View file

@ -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
*