Skip to content
Extraits de code Groupes Projets
Valider 8f24c5fe rédigé par nicod's avatar nicod
Parcourir les fichiers

Formatage

parent 44aae6d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -158,18 +158,18 @@ function _block_charger_block($id_bloc) {
* @param $id_bloc
* @return mixed|string
*/
function generer_TITRE_BLOC($id_bloc){
if($infos = sql_fetsel(
function generer_TITRE_BLOC($id_bloc) {
if ($infos = sql_fetsel(
'bt.titre, bl.objet, bl.rang_lien, bl.id_objet',
'spip_blocs b join spip_blocs_types bt using(id_blocs_type) left join spip_blocs_liens bl using(id_bloc)',
'b.id_bloc = '.(int)$id_bloc
'b.id_bloc = ' . (int)$id_bloc
)) {
$titre = $infos['titre'];
if ($infos['id_objet'] && $infos['objet']) {
$titre = generer_objet_info($infos['id_objet'], $infos['objet'], 'titre') . ' - ' . $titre . ' #' . $infos['rang_lien'];
}
} else {
$titre = _T('bloc:titre_bloc').' '.$id_bloc;
$titre = _T('bloc:titre_bloc') . ' ' . $id_bloc;
}
return $titre;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter