login=='') throw new Exception("Permissions insuffisantes", 403);
?>
30 Dernières modifications :
$2', $message);
$message = preg_replace_callback('/#([^\s]*)(\s|$)/iU', function($matches) use(&$tags){
$tag = trim(strtolower($matches[1]));
if($tag=='') return;
if(!isset($tags[$tag])) $tags[$tag] = 0;
$tags[$tag]++;
return $matches[2];
}, $message);
if(isset($tags['feature'])){
$icons[] = 'fas fa-plus-circle';
$colors[] = 'success';
}
if(isset($tags['bug'])){
$icons[] = 'fas fa-bug';
$colors[] = 'danger';
}
if(preg_match('/refactor|rework/i', $message)){
$icons[] = 'fas fa-sync';
$colors[] = 'warning';
}
if(count($icons)==0) $icons[] ='fas fa-pencil-alt';
?>
- >
$count): ?>
1 ? ' ('.$count.')':'' ?>