https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112499

Revision: 112499
Author:   jeroendedauw
Date:     2012-02-27 18:18:44 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
rem dead code

Modified Paths:
--------------
    trunk/extensions/EducationProgram/EducationProgram.php

Removed Paths:
-------------
    trunk/extensions/EducationProgram/specials/SpecialCA.php
    trunk/extensions/EducationProgram/specials/SpecialOA.php

Modified: trunk/extensions/EducationProgram/EducationProgram.php
===================================================================
--- trunk/extensions/EducationProgram/EducationProgram.php      2012-02-27 
18:11:46 UTC (rev 112498)
+++ trunk/extensions/EducationProgram/EducationProgram.php      2012-02-27 
18:18:44 UTC (rev 112499)
@@ -136,8 +136,6 @@
 $wgAutoloadClasses['SpecialDisenroll']                                 = 
dirname( __FILE__ ) . '/specials/SpecialDisenroll.php';
 $wgAutoloadClasses['SpecialCAs']                                       = 
dirname( __FILE__ ) . '/specials/SpecialCAs.php';
 $wgAutoloadClasses['SpecialOAs']                                       = 
dirname( __FILE__ ) . '/specials/SpecialOAs.php';
-//$wgAutoloadClasses['SpecialCA']                                      = 
dirname( __FILE__ ) . '/specials/SpecialCA.php';
-//$wgAutoloadClasses['SpecialOA']                                      = 
dirname( __FILE__ ) . '/specials/SpecialOA.php';
 $wgAutoloadClasses['SpecialOAProfile']                                 = 
dirname( __FILE__ ) . '/specials/SpecialOAProfile.php';
 $wgAutoloadClasses['SpecialCAProfile']                                 = 
dirname( __FILE__ ) . '/specials/SpecialCAProfile.php';
 $wgAutoloadClasses['SpecialAmbassadorProfile']                 = dirname( 
__FILE__ ) . '/specials/SpecialAmbassadorProfile.php';
@@ -153,8 +151,6 @@
 $wgSpecialPages['Disenroll']                                           = 
'SpecialDisenroll';
 $wgSpecialPages['CampusAmbassadors']                           = 'SpecialCAs';
 $wgSpecialPages['OnlineAmbassadors']                           = 'SpecialOAs';
-//$wgSpecialPages['CampusAmbassador']                          = 'SpecialCA';
-//$wgSpecialPages['OnlineAmbassador']                          = 'SpecialOA';
 $wgSpecialPages['CampusAmbassadorProfile']                     = 
'SpecialCAProfile';
 $wgSpecialPages['OnlineAmbassadorProfile']                     = 
'SpecialOAProfile';
 
@@ -166,8 +162,6 @@
 $wgSpecialPageGroups['EducationProgram']                       = 'education';
 $wgSpecialPageGroups['CampusAmbassadors']                      = 'education';
 $wgSpecialPageGroups['OnlineAmbassadors']                      = 'education';
-//$wgSpecialPageGroups['CampusAmbassador']                     = 'education';
-//$wgSpecialPageGroups['OnlineAmbassador']                     = 'education';
 $wgSpecialPageGroups['CampusAmbassadorProfile']        = 'education';
 $wgSpecialPageGroups['OnlineAmbassadorProfile']        = 'education';
 $wgSpecialPageGroups['Enroll']                                                 
= 'education';

Deleted: trunk/extensions/EducationProgram/specials/SpecialCA.php
===================================================================
--- trunk/extensions/EducationProgram/specials/SpecialCA.php    2012-02-27 
18:11:46 UTC (rev 112498)
+++ trunk/extensions/EducationProgram/specials/SpecialCA.php    2012-02-27 
18:18:44 UTC (rev 112499)
@@ -1,71 +0,0 @@
-<?php
-
-/**
- * Shows the info for a single campus ambassador.
- *
- * @since 0.1
- *
- * @file SpecialCA.php
- * @ingroup EducationProgram
- *
- * @licence GNU GPL v3 or later
- * @author Jeroen De Dauw < [email protected] >
- */
-class SpecialCA extends SpecialEPPage {
-
-       /**
-        * Constructor.
-        *
-        * @since 0.1
-        */
-       public function __construct() {
-               parent::__construct( 'CampusAmbassador', '', false );
-       }
-
-       /**
-        * Main method.
-        *
-        * @since 0.1
-        *
-        * @param string $subPage
-        */
-       public function execute( $subPage ) {
-               parent::execute( $subPage );
-
-               $out = $this->getOutput();
-
-               if ( trim( $subPage ) === '' ) {
-                       $this->getOutput()->redirect( SpecialPage::getTitleFor( 
'CampusAmbassadors' )->getLocalURL() );
-               }
-               else {
-                       $out->setPageTitle( wfMsgExt( 'ep-ca-title', 
'parsemag', $this->subPage ) );
-
-                       $this->displayNavigation();
-
-                       $ca = false; // TODO
-
-                       if ( $ca === false ) {
-                               $this->showWarning( wfMessage( 
'ep-ca-does-not-exist', $this->subPage ) );
-                       }
-                       else {
-                               $this->displaySummary( $ca );
-                       }
-               }
-       }
-
-       /**
-        * Gets the summary data.
-        *
-        * @since 0.1
-        *
-        * @param EPCA $ca
-        *
-        * @return array
-        */
-       protected function getSummaryData( DBDataObject $ca ) {
-               $stats = array();
-
-               return $stats;
-       }
-
-}

Deleted: trunk/extensions/EducationProgram/specials/SpecialOA.php
===================================================================
--- trunk/extensions/EducationProgram/specials/SpecialOA.php    2012-02-27 
18:11:46 UTC (rev 112498)
+++ trunk/extensions/EducationProgram/specials/SpecialOA.php    2012-02-27 
18:18:44 UTC (rev 112499)
@@ -1,71 +0,0 @@
-<?php
-
-/**
- * Shows the info for a single online ambassador.
- *
- * @since 0.1
- *
- * @file SpecialOA.php
- * @ingroup EducationProgram
- *
- * @licence GNU GPL v3 or later
- * @author Jeroen De Dauw < [email protected] >
- */
-class SpecialOA extends SpecialEPPage {
-
-       /**
-        * Constructor.
-        *
-        * @since 0.1
-        */
-       public function __construct() {
-               parent::__construct( 'OnlineAmbassador', '', false );
-       }
-
-       /**
-        * Main method.
-        *
-        * @since 0.1
-        *
-        * @param string $subPage
-        */
-       public function execute( $subPage ) {
-               parent::execute( $subPage );
-
-               $out = $this->getOutput();
-
-               if ( trim( $subPage ) === '' ) {
-                       $this->getOutput()->redirect( SpecialPage::getTitleFor( 
'OnlineAmbassadors' )->getLocalURL() );
-               }
-               else {
-                       $out->setPageTitle( wfMsgExt( 'ep-oa-title', 
'parsemag', $this->subPage ) );
-
-                       $this->displayNavigation();
-
-                       $oa = false; // TODO
-
-                       if ( $oa === false ) {
-                               $this->showWarning( wfMessage( 
'ep-oa-does-not-exist', $this->subPage ) );
-                       }
-                       else {
-                               $this->displaySummary( $oa );
-                       }
-               }
-       }
-
-       /**
-        * Gets the summary data.
-        *
-        * @since 0.1
-        *
-        * @param EPOA $ca
-        *
-        * @return array
-        */
-       protected function getSummaryData( DBDataObject $oa ) {
-               $stats = array();
-
-               return $stats;
-       }
-
-}


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to