/**
  * 
  * @return ActionsAdminCategory
  */
 public static function getInstance()
 {
     if (self::$instance === false) {
         self::$instance = new ActionsAdminCategory();
     }
     return self::$instance;
 }
require_once "auth.php";
if (!est_autorise("acces_catalogue")) {
    exit;
}
require_once __DIR__ . "/../fonctions/divers.php";
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
if (false == ($lang = $request->get("lang", false))) {
    $lang = ActionsLang::instance()->get_id_langue_courante();
}
if (false == ($tab = $request->get("tab", false))) {
    $tab = "generalDescriptionTab";
}
$errorCode = 0;
$errorMessage = '';
try {
    ActionsAdminCategory::getInstance()->action($request);
} catch (TheliaAdminException $e) {
    $errorCode = $e->getCode();
    $errorMessage = $e->getMessage();
}
$rubrique = new Rubrique($request->query->get("id"));
$rubriquedesc = new Rubriquedesc($rubrique->id, $lang);
// $rubriquedesc->chapo = str_replace('<br />', "\n", $rubriquedesc->chapo);
// $rubriquedesc->postscriptum = str_replace('<br />', "\n", $rubriquedesc->postscriptum);
?>
<!DOCTYPE html>
<html lang="fr">
    <head>
        <?php 
require_once "title.php";
?>