X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Flegender.php;fp=www%2Fecrire%2Finc%2Flegender.php;h=d0d32638d301584584829c91e558b07bc2d74cf4;hp=e49ab34d86552f0000c57e563c6fe5935d59e5fb;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/inc/legender.php b/www/ecrire/inc/legender.php index e49ab34..d0d3263 100644 --- a/www/ecrire/inc/legender.php +++ b/www/ecrire/inc/legender.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -73,8 +73,8 @@ function legender_entete($document) { $titre = $document['titre']; $entete = basename($document['fichier']); - if (($n=strlen($entete)) > 20) - $entete = substr($entete, 0, 7)."...".substr($entete, $n-7, $n); + if (strlen($entete) > 20) + $entete = substr($entete, 0, 20)."..."; if (strlen($titre)) $entete = "". lignes_longues(typo($titre),25) . ""; return sinon($entete,_T('info_sans_titre'));