- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.media.php
r1103 r909 821 821 $this->callFileHandler(files::getMimeType($media_file),'remove',$f); 822 822 } 823 824 /**825 * Root directories826 *827 * Returns an array of directory under {@link $root} directory.828 *829 * @uses fileItem830 * @return array831 */832 public function getDBDirs()833 {834 $media_dir = $this->relpwd ? $this->relpwd : '.';835 836 $strReq =837 'SELECT distinct media_dir '.838 'FROM '.$this->table.' '.839 "WHERE media_path = '".$this->path."'";840 $rs = $this->con->select($strReq);841 while ($rs->fetch()) {842 if (is_dir($this->root.'/'.$rs->media_dir))843 $dir[] = $rs->media_dir;844 }845 846 return $dir;847 }848 823 849 824 /**
Note: See TracChangeset
for help on using the changeset viewer.