* only set image size when view a doc.

This commit is contained in:
wangchunsheng
2012-04-30 08:34:28 +00:00
parent b3d76d795c
commit 751f5dc29b
3 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ class doc extends control
public function view($docID)
{
/* Get doc. */
$doc = $this->doc->getById($docID);
$doc = $this->doc->getById($docID, true);
if(!$doc) die(js::error($this->lang->notFound) . js::locate('back'));
if($doc->project != 0 and !$this->project->checkPriv($this->project->getById($doc->project)))
{