Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | |
50 | 50 | $method = $wgRequest->getVal( 'method' ); |
51 | 51 | |
52 | | - // Handle showing campaign detail |
| 52 | + // Switch to campaign detail interface if requested |
53 | 53 | if ( $method == 'listNoticeDetail' ) { |
54 | 54 | $notice = $wgRequest->getVal ( 'notice' ); |
55 | 55 | $this->listNoticeDetail( $notice ); |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | return; |
58 | 58 | } |
59 | 59 | |
60 | | - // Handle form submissions |
| 60 | + // Handle form submissions from "Manage campaigns" or "Add a campaign" interface |
61 | 61 | if ( $this->editable && $wgRequest->wasPosted() ) { |
62 | 62 | |
63 | 63 | // Check authentication token |
— | — | @@ -524,6 +524,7 @@ |
525 | 525 | $wgOut->wrapWikiMsg( "<div class='cn-error'>\n$1\n</div>", 'centralnotice-notice-doesnt-exist' ); |
526 | 526 | } else { |
527 | 527 | |
| 528 | + // Handle form submissions from campaign detail interface |
528 | 529 | if ( $wgRequest->wasPosted() ) { |
529 | 530 | |
530 | 531 | // Check authentication token |