Skip to content

Commit

Permalink
MDL-32512 remove deprecated table_sql constructor breaking E_STRICT
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 21, 2012
1 parent ead4f18 commit 7e41a08
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/tablelib.php
Expand Up @@ -1270,17 +1270,6 @@ function __construct($uniqueid) {
$this->set_attribute('class', 'generaltable generalbox');
}

/**
* Backwards-compatible constructor, so that legacy code subclassing
* table_sql does not break.
* @deprecated since Moodle 2.0. Will be removed in Moodle 2.1.
*/
function table_sql($uniqueid) {
debugging('Please update your code to user PHP5-style parent::__construct(...), ' .
'not parent::table_sql(...).');
$this->__construct($uniqueid);
}

/**
* Take the data returned from the db_query and go through all the rows
* processing each col using either col_{columnname} method or other_cols
Expand Down

0 comments on commit 7e41a08

Please sign in to comment.