projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make addFirefoxEngine global
[platal.git]
/
modules
/
events.php
diff --git
a/modules/events.php
b/modules/events.php
index
ded323c
..
38244aa
100644
(file)
--- a/
modules/events.php
+++ b/
modules/events.php
@@
-200,7
+200,9
@@
class EventsModule extends PLModule
$page->assign('valid_mesg', $valid_mesg);
$page->assign('action', strtolower($action));
$page->assign('valid_mesg', $valid_mesg);
$page->assign('action', strtolower($action));
- if ($action == 'Confirmer') {
+ if ($action && (!trim($texte) || !trim($titre))) {
+ $page->trig("L'article doit avoir un titre et un contenu");
+ } elseif ($action == 'Confirmer') {
$texte = $texte_catch_url;
require_once 'validations.inc.php';
$evtreq = new EvtReq($titre, $texte, $promo_min, $promo_max,
$texte = $texte_catch_url;
require_once 'validations.inc.php';
$evtreq = new EvtReq($titre, $texte, $promo_min, $promo_max,
@@
-228,6
+230,7
@@
class EventsModule extends PLModule
function handler_tips(&$page, $tips = null)
{
function handler_tips(&$page, $tips = null)
{
+ header('Content-Type: text/html; charset="ISO-8859-15"');
$page->changeTpl('include/tips.tpl', NO_SKIN);
$page->assign('tips', $this->get_tips($tips));
}
$page->changeTpl('include/tips.tpl', NO_SKIN);
$page->assign('tips', $this->get_tips($tips));
}