mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
fixed apache example config
This commit is contained in:
@ -42,6 +42,19 @@ class ModelFolderFolder extends Model {
|
||||
}
|
||||
|
||||
|
||||
public function get_top_level_folders() {
|
||||
$folders = array();
|
||||
|
||||
$query = $this->db->query("SELECT `id`, `name` FROM `" . TABLE_FOLDER . "` WHERE parent_id=0");
|
||||
|
||||
foreach ($query->rows as $q) {
|
||||
$folders[$q['id']] = $q['name'];
|
||||
}
|
||||
|
||||
return $folders;
|
||||
}
|
||||
|
||||
|
||||
public function get_folders_for_user() {
|
||||
$session = Registry::get('session');
|
||||
|
||||
|
Reference in New Issue
Block a user