Ejemplo n.º 1
0
 /**
  * Counts all smiley occurences systemwide and updates the smileys' counters
  *
  * @param String $view View to return to
  */
 public function count_action($view)
 {
     $updated = Smiley::updateUsage();
     $message = sprintf(_('%d Zählerstände aktualisiert'), $updated);
     $msg = $updated > 0 ? MessageBox::success($message) : MessageBox::info($message);
     PageLayout::postMessage($msg);
     $this->redirect('admin/smileys?view=' . $view);
 }