Index: trunk/extensions/EducationProgram/includes/EPStudentPager.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * |
20 | 20 | * @param array $conds |
21 | 21 | */ |
22 | | - public function __construct( array $conds ) { |
| 22 | + public function __construct( array $conds = array() ) { |
23 | 23 | $this->mDefaultDirection = true; |
24 | 24 | |
25 | 25 | // when MW 1.19 becomes min, we want to pass an IContextSource $context here. |
Index: trunk/extensions/EducationProgram/includes/EPOrgPager.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * |
20 | 20 | * @param array $conds |
21 | 21 | */ |
22 | | - public function __construct( array $conds ) { |
| 22 | + public function __construct( array $conds = array() ) { |
23 | 23 | $this->mDefaultDirection = true; |
24 | 24 | |
25 | 25 | // when MW 1.19 becomes min, we want to pass an IContextSource $context here. |
Index: trunk/extensions/EducationProgram/includes/EPPager.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | $c = $this->className; // Yeah, this is needed in PHP 5.3 >_> |
105 | 105 | return array( |
106 | 106 | 'tables' => array( $c::getDBTable() ), |
107 | | - 'fields' => $c::getFieldNames(), |
| 107 | + 'fields' => $c::getPrefixedFields( $c::getFieldNames() ), |
108 | 108 | 'conds' => $c::getPrefixedValues( $this->conds ), |
109 | 109 | ); |
110 | 110 | } |
— | — | @@ -168,7 +168,7 @@ |
169 | 169 | * |
170 | 170 | * @return string |
171 | 171 | */ |
172 | | - protected function getFilterControl( $hideWhenNoResults ) { |
| 172 | + public function getFilterControl( $hideWhenNoResults ) { |
173 | 173 | $filterOptions = $this->getFilterOptions(); |
174 | 174 | |
175 | 175 | if ( count( $filterOptions ) < 1 ) { |
Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * |
20 | 20 | * @param array $conds |
21 | 21 | */ |
22 | | - public function __construct( array $conds ) { |
| 22 | + public function __construct( array $conds = array() ) { |
23 | 23 | $this->mDefaultDirection = true; |
24 | 24 | |
25 | 25 | // when MW 1.19 becomes min, we want to pass an IContextSource $context here. |