UserFilter::assertGrade($this->grade);
}
if ($this->grade == UserFilter::DISPLAY && $this->comparison != '=') {
- Platal::page()->killError('Comparison ' . $this->comparison . ' not allowed on displaid promo');
+ // XXX: we might try to guess the grade from the first char of the promo and forbid only '<= 2004', but allow '<= X2004'
+ Platal::page()->killError("Il n'est pas possible d'appliquer la comparaison '" . $this->comparison . "' aux promotions sans spécifier de formation (X/M/D)");
}
}
15 * * * * web cd $WD; ./axletter.send.php | mail -e -s "Envoi d'un email de l'AX" br@staff.m4x.org
# homonymes
-0 0 4 * * web cd $WD; ./homonymes.php
+0 0 4 * * web cd $WD; ./homonyms.php
# ml moderation
* * * * * web cd $WD; ./cron_ml_moderate.php > /dev/null
}
protected function buildUFC(UserFilterBuilder &$ufb) {
- return new UFC_Promo($this->comp, UserFilter::DISPLAY, 'X' . $this->val);
+ return new UFC_Promo($this->comp, UserFilter::GRADE_ING, $this->val);
}
}
// }}}
function doPlatalLink($link, $text)
{
if (strlen(trim($text)) == 0) {
- $user = User::get($link);
- $text = $user->fullName();
+ $profile = Profile::get($link);
+ $text = $profile->fullName();
}
return '<a href="profile/' . $link . '" class="popup2">' . $text . '</a>';
}
$view->addMod('trombi', 'Trombinoscope');
$view->apply('annuaire', $page, $action, $subaction);
$page->changeTpl('xnetgrp/annuaire.tpl');
+ $count = XDB::fetchOneCell('SELECT COUNT(*)
+ FROM group_members
+ WHERE asso_id = {?}',
+ $globals->asso('id'));
+ $page->assign('nb_tot', $count);
return;
}
$users = $uf->getUsers(new PlLimit(NB_PER_PAGE, $ofs * NB_PER_PAGE));
$count = $uf->getTotalCount();
+ $page->assign('nb_tot', $count);
$page->assign('pages', floor(($count + NB_PER_PAGE - 1) / NB_PER_PAGE));
$page->assign('current', $ofs);
$page->assign('order', $sort);
--- /dev/null
+ALTER TABLE requests_answers MODIFY COLUMN category ENUM('alias','liste','usage','photo','evts','gapps-unsuspend','marketing','orange','homonyme','nl','paiements','medal','broken','surveys', 'entreprise') NOT NULL DEFAULT 'alias';
+
+-- vim:set syntax=mysql: