修改了附件管理中删除附件时获取文件路径的方法为从config中获得
This commit is contained in:
parent
ff20f636d2
commit
0ce0b99fb7
|
@ -1137,7 +1137,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
//需要删除文件,通过Zend_Registry::get('upload')获得上传文件的根目录
|
//需要删除文件,通过Zend_Registry::get('upload')获得上传文件的根目录
|
||||||
|
|
||||||
$basepath = Zend_Registry::get('upload');
|
$basepath = $this->view->config->upload;
|
||||||
|
|
||||||
//从数据库获取文件路径
|
//从数据库获取文件路径
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue