浏览代码

Issue 3331: Removed unneeded table "deliverq"

tags/3.5.2
Michael 3 年前
父节点
当前提交
d82684219a
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. +1
    -4
      mod/admin.php
  2. +1
    -1
      view/templates/admin_summary.tpl

+ 1
- 4
mod/admin.php 查看文件

@@ -474,9 +474,6 @@ function admin_page_summary(App $a) {
$r = qu("SELECT COUNT(`id`) AS `count` FROM `register`");
$pending = $r[0]['count'];

$r = qu("SELECT COUNT(*) AS `total` FROM `deliverq` WHERE 1");
$deliverq = (($r) ? $r[0]['total'] : 0);

$r = qu("SELECT COUNT(*) AS `total` FROM `queue` WHERE 1");
$queue = (($r) ? $r[0]['total'] : 0);

@@ -485,7 +482,7 @@ function admin_page_summary(App $a) {

// We can do better, but this is a quick queue status

$queues = array('label' => t('Message queues'), 'deliverq' => $deliverq, 'queue' => $queue, 'workerq' => $workerqueue);
$queues = array('label' => t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue);


$t = get_markup_template("admin_summary.tpl");


+ 1
- 1
view/templates/admin_summary.tpl 查看文件

@@ -11,7 +11,7 @@

<dl>
<dt>{{$queues.label}}</dt>
<dd>{{$queues.deliverq}} - <a href="{{$baseurl}}/admin/queue">{{$queues.queue}}</a> - {{$queues.workerq}}</dd>
<dd><a href="{{$baseurl}}/admin/queue">{{$queues.queue}}</a> - {{$queues.workerq}}</dd>
</dl>
<dl>
<dt>{{$pending.0}}</dt>


正在加载...
取消
保存