LesSix, Ltm, Soleiade, Trois, Robots, Bureaucrates, Administrateurs d’interface, ltm, soleil, Modérateurs, Administrateurs, trois, Modificateurs de widgets
5 450
modifications
(Version d'origine) |
(Version francisée) |
||
Ligne 75 : | Ligne 75 : | ||
$wgMessageCache->addMessages( | $wgMessageCache->addMessages( | ||
array ( | array ( | ||
'addtag' => ' | 'addtag' => 'Ajouter Catégorie', | ||
'notags' => '( | 'notags' => '(aucune)' | ||
) | ) | ||
); | ); | ||
Ligne 152 : | Ligne 152 : | ||
$content = $article->getContent(); | $content = $article->getContent(); | ||
$newCategoryString = "[[ | $newCategoryString = "[[Catégorie:" . $wgRequest->getVal('tag') . "]]"; | ||
// if $content doesn't already contain the new Category string... | // if $content doesn't already contain the new Category string... | ||
Ligne 165 : | Ligne 165 : | ||
$article->doEdit( | $article->doEdit( | ||
$content . "\n" . $newCategoryString . "\n", | $content . "\n" . $newCategoryString . "\n", | ||
" | "Catégorie ajoutée : '" . $wgRequest->getVal('tag') . "'", | ||
EDIT_UPDATE | EDIT_SUPPRESS_RC | EDIT_UPDATE | EDIT_SUPPRESS_RC | ||
); | ); |
modifications