All Xnet descriptions now use wiki syntax, thus there is no point to keep the distinc...
authorStéphane Jacob <sj@m4x.org>
Wed, 28 Oct 2009 22:07:16 +0000 (23:07 +0100)
committerStéphane Jacob <sj@m4x.org>
Thu, 29 Oct 2009 18:38:43 +0000 (19:38 +0100)
classes/platalglobals.php.in
modules/xnetgrp.php
templates/xnetgrp/asso.tpl
templates/xnetgrp/edit.tpl

index 94803e8..a35c3c1 100644 (file)
@@ -61,7 +61,6 @@ class PlatalGlobals extends PlGlobals
 
             if ($gp) {
                 $res = XDB::query("SELECT  a.*, d.nom AS domnom,
-                                           FIND_IN_SET('wiki_desc', a.flags) AS wiki_desc,
                                            FIND_IN_SET('notif_unsub', a.flags) AS notif_unsub,
                                            FIND_IN_SET('has_ml', a.flags) AS has_ml
                                      FROM  groupex.asso AS a
index 609c8c0..9f26711 100644 (file)
@@ -225,7 +225,7 @@ class XnetGrpModule extends PLModule
         if (Post::has('submit')) {
             S::assert_xsrf_token();
 
-            $flags = new PlFlagSet('wiki_desc');
+            $flags = new PlFlagSet();
             if (Post::has('notif_unsub') && Post::i('notif_unsub') == 1) {
                 $flags->addFlag('notif_unsub');
             }
@@ -294,11 +294,6 @@ class XnetGrpModule extends PLModule
             $page->assign('dom', $dom);
             $page->assign('super', true);
         }
-        if (!$globals->asso('wiki_desc') && $globals->asso('descr')) {
-            $page->trigWarning("Attention, le format de la description a changé et utilise désormais la syntaxe wiki "
-                      . "intégrée au site. Il te faudra probablement adapter le formatage du texte actuel pour "
-                      . "qu'il s'affiche correctement avec cette nouvelle syntaxe.");
-        }
     }
 
     function handler_mail(&$page)
index 35f3727..9aef3ff 100644 (file)
 <br />
 
 <div style="text-align: justify">
-  {if $asso.wiki_desc}
   {$asso.descr|miniwiki:title|smarty:nodefaults}
-  {else}
-  {$asso.descr|smarty:nodefaults}
-  {/if}
 </div>
 
 <br />
index 2c5765f..2fd3116 100644 (file)
     <a href="wiki_help" class="popup3">
       {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour la description.
     </a>
-    <textarea name="descr" cols="70" rows="15" id="descr"
-              {if !$asso.wiki_desc && $asso.descr}class="error"{/if}>{$asso.descr}</textarea>
+    <textarea name="descr" cols="70" rows="15" id="descr">{$asso.descr}</textarea>
     <input type="submit" name="preview" value="Aperçu de la description"
            onclick="previewWiki('descr', 'preview_descr', true, 'preview_descr'); return false;" /><br />
     <input type="submit" name="submit" value="Enregistrer" />