change sync thumb water db to watergn

This commit is contained in:
wlx 2011-11-14 02:32:54 +00:00
parent b1b2419d72
commit 63885b21e6
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class Admin_DataController extends Zend_Controller_Action
} }
$this->view->msg='已成功同步缩略图!'; $this->view->msg='已成功同步缩略图!';
} elseif ($thumb=='water') { } 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); $rows=$this->db->fetchAll($sql);
foreach($rows as $row) { 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)); $data=file_get_contents($this->view->config->watergeonetwork->url.'srv/cn/resources.get?access=public&id='.$row->gid.'&fname='.urlencode($row->filename));