tosfos has uploaded a new change for review.
https://gerrit.wikimedia.org/r/148582
Change subject: fix documentation, rename file
......................................................................
fix documentation, rename file
Change-Id: I98041240fdf3d6286115d95c007a519f25314de7
---
R QuestionTabulate.class.php
M QuizTabulate.php
2 files changed, 4 insertions(+), 12 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/QuizTabulate
refs/changes/82/148582/1
diff --git a/QuizTabulate.class.php b/QuestionTabulate.class.php
similarity index 93%
rename from QuizTabulate.class.php
rename to QuestionTabulate.class.php
index 6231413..0e52210 100644
--- a/QuizTabulate.class.php
+++ b/QuestionTabulate.class.php
@@ -1,14 +1,6 @@
<?php
class QuestionTabulate extends Question {
- /**
- * Constructor
- *
- * @param $beingCorrected Boolean.
- * @param $caseSensitive Boolean.
- * @param $questionId Integer: the Identifier of the question used to
generate input names.
- * @param $parser Parser the wikitext parser.
- */
/**
* Constructor
@@ -16,7 +8,7 @@
* @global int $wgQuizPageLatestRevID
* @param boolean $beingCorrected
* @param boolean $caseSensitive
- * @param int $questionId
+ * @param int $questionId Identifier of the question used to generate
input names.
* @param Parser $parser
*/
public function __construct( $beingCorrected, $caseSensitive,
$questionId, Parser &$parser ) {
@@ -102,7 +94,8 @@
$fullTableName = QUIZ_TABULATE_TABLE;
foreach ( $allAnswers as $answerId => $proposal ) {
- #@todo extension does not enter answer into db until it
is checked. so not all answers may be shown when viewing quiz tabulation.
+ #@todo extension does not enter answer into db until it
is checked.
+ #so not all answers may be shown when viewing quiz
tabulation.
if ( $proposal['checked'] == true ) {
$dbr = wfGetDB( DB_SLAVE );
if ( !$dbr->tableExists( $fullTableName ) ) {
diff --git a/QuizTabulate.php b/QuizTabulate.php
index ea16cd3..ed87c99 100644
--- a/QuizTabulate.php
+++ b/QuizTabulate.php
@@ -26,8 +26,7 @@
'url' => 'http://www.mediawiki.org/wiki/Extension:QuizTabulate',
);
-$wgAutoloadClasses['QuizTabulate'] = __DIR__ . '/QuizTabulate.class.php';
-$wgAutoloadClasses['QuestionTabulate'] = __DIR__ . '/QuizTabulate.class.php';
+$wgAutoloadClasses['QuestionTabulate'] = __DIR__ .
'/QuestionTabulate.class.php';
$wgAutoloadClasses['QuizTabulateHooks'] = __DIR__ . '/QuizTabulate.hooks.php';
$wgMessagesDirs['QuizTabulate'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['QuizTabulate'] = __DIR__ . '/QuizTabulate.i18n.php';
--
To view, visit https://gerrit.wikimedia.org/r/148582
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I98041240fdf3d6286115d95c007a519f25314de7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/QuizTabulate
Gerrit-Branch: master
Gerrit-Owner: tosfos <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits