Index: trunk/extensions/EducationProgram/includes/EPCAPager.php |
— | — | @@ -12,6 +12,7 @@ |
13 | 13 | * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
14 | 14 | */ |
15 | 15 | class EPCAPager extends EPOAPager { |
| 16 | + |
16 | 17 | /** |
17 | 18 | * Constructor. |
18 | 19 | * |
— | — | @@ -19,8 +20,7 @@ |
20 | 21 | * @param array $conds |
21 | 22 | */ |
22 | 23 | public function __construct( IContextSource $context, array $conds = array() ) { |
23 | | - parent::__construct( $context, $conds ); |
24 | | - $this->table = EPCAs::singleton(); |
| 24 | + parent::__construct( $context, $conds, EPCAs::singleton() ); |
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
Index: trunk/extensions/EducationProgram/includes/EPOAPager.php |
— | — | @@ -18,10 +18,16 @@ |
19 | 19 | * |
20 | 20 | * @param IContextSource $context |
21 | 21 | * @param array $conds |
| 22 | + * @param DBTable|null $table |
22 | 23 | */ |
23 | | - public function __construct( IContextSource $context, array $conds = array() ) { |
| 24 | + public function __construct( IContextSource $context, array $conds = array(), DBTable $table = null ) { |
24 | 25 | $this->mDefaultDirection = true; |
25 | | - parent::__construct( $context, $conds, EPOAs::singleton() ); |
| 26 | + |
| 27 | + parent::__construct( |
| 28 | + $context, |
| 29 | + $conds, |
| 30 | + is_null( $table ) ? EPOAs::singleton() : $table |
| 31 | + ); |
26 | 32 | } |
27 | 33 | |
28 | 34 | /** |