http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100199

Revision: 100199
Author:   reedy
Date:     2011-10-19 01:11:57 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
1.18wmf1 r100198

Modified Paths:
--------------
    branches/wmf/1.18wmf1/extensions/Contest/Contest.i18n.php
    branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialMyContests.php

Property Changed:
----------------
    branches/wmf/1.18wmf1/extensions/Contest/


Property changes on: branches/wmf/1.18wmf1/extensions/Contest
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/REL1_15/phase3/extensions/Contest:51646
/branches/REL1_17/phase3/extensions/Contest:81445,81448
/branches/new-installer/phase3/extensions/Contest:43664-66004
/branches/sqlite/extensions/Contest:58211-58321
/trunk/extensions/Contest:99592,99653,100190-100191,100193
/trunk/phase3/extensions/Contest:92580,92634,92713,92762,92765,92791,92854,92884,92886-92887,92894,92898,92907,92932,92958,93141,93149,93151,93233-93234,93258,93266,93303,93516-93518,93520,93818-93822,93847,93858,93891,93935-93936,94058,94062,94068,94107,94155,94235,94277,94346,94372,94422,94425,94444,94448,94456,94498,94517,94601,94630,94728,94738,94825,94862,94995-94997,95023,95042,95072-95073,95155,95327,95332,95410,95422,95426,95442,95468,95601,95812,98578,98598,98656
   + /branches/REL1_15/phase3/extensions/Contest:51646
/branches/REL1_17/phase3/extensions/Contest:81445,81448
/branches/new-installer/phase3/extensions/Contest:43664-66004
/branches/sqlite/extensions/Contest:58211-58321
/trunk/extensions/Contest:99592,99653,100190-100191,100193,100198
/trunk/phase3/extensions/Contest:92580,92634,92713,92762,92765,92791,92854,92884,92886-92887,92894,92898,92907,92932,92958,93141,93149,93151,93233-93234,93258,93266,93303,93516-93518,93520,93818-93822,93847,93858,93891,93935-93936,94058,94062,94068,94107,94155,94235,94277,94346,94372,94422,94425,94444,94448,94456,94498,94517,94601,94630,94728,94738,94825,94862,94995-94997,95023,95042,95072-95073,95155,95327,95332,95410,95422,95426,95442,95468,95601,95812,98578,98598,98656

Modified: branches/wmf/1.18wmf1/extensions/Contest/Contest.i18n.php
===================================================================
--- branches/wmf/1.18wmf1/extensions/Contest/Contest.i18n.php   2011-10-19 
01:10:56 UTC (rev 100198)
+++ branches/wmf/1.18wmf1/extensions/Contest/Contest.i18n.php   2011-10-19 
01:11:57 UTC (rev 100199)
@@ -207,6 +207,7 @@
        'contest-submission-invalid-url' => 'This URL does not match one of the 
allowed formats.',
        'contest-submission-new-submission' => 'You still need to enter the URL 
to your submission. This needs to be done before the deadline.',
        'contest-submission-current-submission' => 'This is the URL to your 
submission, which you can modify untill the deadline.',
+       'contest-submission-challenge' => 'You are currently on the $1 
challenge',
 
        // TODO: how can this be done properly in JS?
        'contest-submission-domains' => 'Submissions are restricted to these 
sites: $1',

Modified: 
branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialMyContests.php
===================================================================
--- branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialMyContests.php     
2011-10-19 01:10:56 UTC (rev 100198)
+++ branches/wmf/1.18wmf1/extensions/Contest/specials/SpecialMyContests.php     
2011-10-19 01:11:57 UTC (rev 100199)
@@ -302,6 +302,10 @@
                $form->setSubmitCallback( array( $this, 'handleSubmission' ) );
                $form->setSubmitText( wfMsg( 'contest-submission-submit' ) );
 
+               $challengeId = $contestant->getField( 'challenge_id' );
+               $challenge = ContestChallenge::getTitlesForIds( $challengeId );
+               $output->addWikiMsg( 'contest-submission-challenge', 
$challenge[$challengeId] );
+
                if( $form->show() ) {
                        $query = is_null( $this->submissionState ) ? '' : 
$this->submissionState;
                        $output->redirect( $this->getTitle( $contest->getField( 
'name' ) )->getLocalURL( $query ) );


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to