MDL-19391 Database : fixed icon size
authorAparup Banerjee <aparup@moodle.com>
Fri, 16 Sep 2011 03:44:14 +0000 (11:44 +0800)
committerAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Tue, 24 Apr 2012 15:00:38 +0000 (16:00 +0100)
mod/data/lib.php

index e6737d9..98f312b 100644 (file)
@@ -1314,7 +1314,7 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
 
         $patterns[]='##approve##';
         if (has_capability('mod/data:approve', $context) && ($data->approval) && (!$record->approved)){
-            $replacement[] = '<span class="approve"><a href="'.$CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&amp;approve='.$record->id.'&amp;sesskey='.sesskey().'"><img src="'.$OUTPUT->pix_url('i/approve') . '" class="icon" alt="'.get_string('approve').'" /></a></span>';
+            $replacement[] = '<span class="approve"><a href="'.$CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&amp;approve='.$record->id.'&amp;sesskey='.sesskey().'"><img src="'.$OUTPUT->pix_url('i/approve') . '" class="iconsmall" alt="'.get_string('approve').'" /></a></span>';
         } else {
             $replacement[] = '';
         }
@@ -3603,4 +3603,4 @@ function data_get_advanced_search_sql($sort, $data, $recordids, $selectdata, $so
     $sqlselect['sql'] = "$nestselectsql $nestfromsql $sortorder";
     $sqlselect['params'] = $inparam;
     return $sqlselect;
-}
\ No newline at end of file
+}