--- ../../moodle-194-weekly/mod/quiz/locallib.php 2009-03-18 16:06:32.000000000 -0700
+++ mod/quiz/locallib.php 2009-05-04 14:04:49.000000000 -0700
@@ -1,4 +1,4 @@
- 0) {
// Print previous link
$strprev = get_string('previous');
- echo ' (' . $strprev . ') ';
+ // MOD -- Changed the following 2 lines: removed the , and added a class to the link
+ // They were using non-breaking spaces to put more space between the numbers
+ // But this prevent the text from wrapping when there were a lot of numbers
+ // So, we use CSS instead
+ //echo ' (' . $strprev . ') ';
+ echo '(' . $strprev . ') ';
+ // End MOD
}
for ($i = 0; $i < $pages; $i++) {
if ($i == $page) {
- echo ' '.($i+1).' ';
+ // MOD -- Changed the following line: removed the , and added a class to the link
+ // They were using non-breaking spaces to put more space between the numbers
+ // But this prevent the text from wrapping when there were a lot of numbers
+ // So, we use CSS instead
+ //echo ' '.($i+1).' ';
+ echo ''.($i+1).' ';
+ // End MOD
} else {
- echo ' '.($i+1).' ';
+ // MOD -- Changed the following line: removed the , and added a class to the link
+ // They were using non-breaking spaces to put more space between the numbers
+ // But this prevent the text from wrapping when there were a lot of numbers
+ // So, we use CSS instead
+ //echo ' '.($i+1).' ';
+ echo ''.($i+1).' ';
+ // End MOD
}
}
if ($page < $pages - 1) {
// Print next link
$strnext = get_string('next');
- echo ' (' . $strnext . ') ';
+ // MOD -- Changed the following 2 lines: removed the , and added a class to the link
+ // They were using non-breaking spaces to put more space between the numbers
+ // But this prevent the text from wrapping when there were a lot of numbers
+ // So, we use CSS instead
+ //echo ' (' . $strnext . ') ';
+ echo '(' . $strnext . ') ';
+ // End MOD
}
echo '';
}