From 63885b21e67a5e7fec061f0fa497af2327d12777 Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 14 Nov 2011 02:32:54 +0000 Subject: [PATCH] change sync thumb water db to watergn --- application/admin/controllers/DataController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 2f074e51..38c8b765 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -139,7 +139,7 @@ class Admin_DataController extends Zend_Controller_Action } $this->view->msg='已成功同步缩略图!'; } elseif ($thumb=='water') { - $sql="select g.id as gid,m.uuid,t.* from heihegn g left join metadata m on m.uuid=g.uuid left join thumbnail t on t.id=m.id where t.filetype is not null and t.filename is not null"; + $sql="select g.id as gid,m.uuid,t.* from watergn g left join metadata m on m.uuid=g.uuid left join thumbnail t on t.id=m.id where t.filetype is not null and t.filename is not null"; $rows=$this->db->fetchAll($sql); foreach($rows as $row) { $data=file_get_contents($this->view->config->watergeonetwork->url.'srv/cn/resources.get?access=public&id='.$row->gid.'&fname='.urlencode($row->filename));