示例#1
0
文件: smileys.php 项目: ratbird/hope
 /**
  * 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);
 }