File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ #### 2.0.1 - 07 November 2022
4
+ - ![ Bug Fix] ( https://smftricks.com/assets/changelog/bug--minus.png ) Fixed stats issue when there are no quizzes/questions created.
5
+
3
6
#### 2.0 - 31 October 2022
4
7
- ![ New Feature] ( https://smftricks.com/assets/changelog/tag--plus.png ) Compatible with SMF 2.1.x
5
8
- ![ Improvement] ( https://smftricks.com/assets/changelog/tag--pencil.png ) Now using hooks.
Original file line number Diff line number Diff line change @@ -1462,8 +1462,27 @@ function template_quiz_details()
1462
1462
<div class="blockcontent windowbg" style="margin-top:2px; ">
1463
1463
<div style="padding:4px;">
1464
1464
<div class="windowbg">
1465
- <table border="0" width="100%" class="windowbg">
1466
- ' ;
1465
+ <table border="0" width="100%" class="windowbg"> ' ;
1466
+
1467
+ // Quiz context?
1468
+ if (!isset ($ context ['SMFQuiz ' ]['quiz ' ]) || empty ($ context ['SMFQuiz ' ]['quiz ' ]))
1469
+ {
1470
+ echo '
1471
+ <tr>
1472
+ <td align="center"> ' , $ txt ['SMFQuiz_Categories_Page ' ]['NoQuizesInCategory ' ] , '</td>
1473
+ </tr>
1474
+ </table>
1475
+ </div>
1476
+ </div>
1477
+ </div>
1478
+ </div>
1479
+ </td>
1480
+ </tr>
1481
+ </table> ' ;
1482
+
1483
+ return ;
1484
+ }
1485
+
1467
1486
foreach ($ context ['SMFQuiz ' ]['quiz ' ] as $ quizRow )
1468
1487
{
1469
1488
echo ' <tr>
Original file line number Diff line number Diff line change 3
3
<package-info xmlns =" http://www.simplemachines.org/xml/package-info" xmlns : smf =" http://www.simplemachines.org/" >
4
4
<id >SMF_Modding:SMFQuiz</id >
5
5
<name >SMF Quiz</name >
6
- <version >2.0</version >
6
+ <version >2.0.1 </version >
7
7
<type >modification</type >
8
8
9
9
<!-- Install -->
You can’t perform that action at this time.
0 commit comments