/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/filetree.php

  • Committer: a11emmjo
  • Date: 2013-05-30 11:25:59 UTC
  • mto: This revision was merged to the branch mainline in revision 136.
  • Revision ID: a11emmjo@student.his.se-20130530112559-5k018g3une55qln2
Fixed the layout on cms index so the arrows and dots marks expanded objects.
Fixed so the course content is sorted by course occasion and not by name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
                 function getCategories($activeCourse) {
8
8
                        $this -> db -> select('categoryName');
9
9
                        $this -> db -> from('Categories'); 
10
 
                        $this -> db -> where('courseID', $activeCourse); 
 
10
                        $this -> db -> where('courseID', $activeCourse);
 
11
                        $this -> db -> order_by('orderNr');
11
12
 
12
13
                        $query = $this -> db -> get();
13
14
                        return $query->result();