mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Just spacings
This commit is contained in:
parent
7261578f34
commit
3515ae35e2
@ -407,6 +407,7 @@ function data_get_field_from_name($name){
|
||||
************************************************************************/
|
||||
function data_get_field($field){
|
||||
if ($field){
|
||||
|
||||
require_once('field/'.$field->type.'/field.class.php');
|
||||
$newfield = 'data_field_'.$field->type;
|
||||
$newfield = new $newfield($field->id);
|
||||
|
@ -217,7 +217,7 @@
|
||||
if ($rid){ //set per page to 1, if looking for 1 specific record
|
||||
set_user_preference('data_perpage', PERPAGE_SINGLE);
|
||||
}
|
||||
|
||||
|
||||
/*****************************
|
||||
* Setting up page variables *
|
||||
*****************************/
|
||||
@ -243,11 +243,9 @@
|
||||
}
|
||||
|
||||
if ($sort) { //supports (sort and search)
|
||||
|
||||
//first find the field that we are sorting
|
||||
$sortfield = data_get_field(get_record('data_fields','id',$sort));
|
||||
$sortcontent = $sortfield->get_sort_field();
|
||||
|
||||
///SEARCH AND SORT SQL
|
||||
$sql = 'SELECT DISTINCT c.recordid, c.recordid
|
||||
FROM '.$CFG->prefix.'data_content c, '
|
||||
|
Loading…
x
Reference in New Issue
Block a user