MDL-20501 survey module: fix text alignment for right to left language. Change undefi...
authorRossiani Wijaya <rwijaya@moodle.com>
Mon, 1 Aug 2011 09:42:23 +0000 (17:42 +0800)
committerRossiani Wijaya <rwijaya@moodle.com>
Mon, 1 Aug 2011 09:42:23 +0000 (17:42 +0800)
mod/survey/index.php

index 5e017ef..6154acf 100644 (file)
     }
 
     $table = new html_table();
+    $table->width = '100%';
 
     if ($usesections) {
-        $table->head  = array ($strsectionname, $strname, $strintro);
-        $table->align = array ('CENTER', 'LEFT', 'LEFT');
+        $table->head  = array ($strsectionname, $strname, $strstatus);
     } else {
-        $table->head  = array ($strname, $strintro);
-        $table->align = array ('LEFT', 'LEFT');
+        $table->head  = array ($strname, $strstatus);
     }
 
     $currentsection = '';