Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions classes/admin_setting_sql_textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_setting_sql_textarea extends \admin_setting_configtextarea {
/** @var int Minimum number of rows to display. */
const MIN_ROWS = 3;

/**
* Returns an XHTML string for the editor, sized to fit the current content.
*
Expand All @@ -39,8 +36,6 @@ class admin_setting_sql_textarea extends \admin_setting_configtextarea {
* @return string
*/
public function output_html($data, $query = '') {
$this->rows = max(self::MIN_ROWS, substr_count($data, "\n") + 2);

$html = parent::output_html($data, $query);

$id = $this->get_id();
Expand Down
Loading