Skip to content

Commit

Permalink
MDL-29857 - portfolio: Fix E_STRICT errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed May 29, 2012
1 parent 4631e39 commit 9b27ffa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/portfolio/forms.php
Expand Up @@ -107,7 +107,7 @@ public function definition() {
* @param stdClass $data portfolio information from form data
* @return array
*/
public function validation($data) {
public function validation($data, $files) {

$errors = array();

Expand Down Expand Up @@ -228,7 +228,7 @@ public function definition() {
* @param stdObject $data form data
* @return array
*/
public function validation($data) {
public function validation($data, $files) {
global $DB;

$errors = array();
Expand Down Expand Up @@ -296,7 +296,7 @@ public function definition() {
*
* @param stdClass $data form data
*/
public function validation($data) {
public function validation($data, $files) {

$errors = $this->instance->user_config_validation($data);

Expand Down
3 changes: 2 additions & 1 deletion portfolio/add.php
Expand Up @@ -221,7 +221,8 @@
throw new portfolio_export_exception($exporter, 'noavailableplugins', 'portfolio');
} else if (count($options) == 1) {
// no point displaying a form, just redirect.
$instance = array_shift(array_keys($options));
$optionskeys = array_keys($options);
$instance = array_shift($optionskeys);
redirect($CFG->wwwroot . '/portfolio/add.php?id= ' . $exporter->get('id') . '&instance=' . $instance . '&sesskey=' . sesskey());
}
// be very selective about not including this unless we really need to
Expand Down

0 comments on commit 9b27ffa

Please sign in to comment.