Skip to content

Commit c6b2969

Browse files
committed
Table bug fix
1 parent 4c374f2 commit c6b2969

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function prepare_items() {
188188
'per_page' => $per_page,
189189
) );
190190

191-
$this->items = self::get_Console( $per_page, $current_page );
191+
$this->items = self::get_Table( $per_page, $current_page );
192192
}
193193

194194

src/settings.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ public function menu_page_callback() { ?>
146146
* Following is the data table class
147147
*/ ?>
148148
<form method="post" action="">
149-
<?php // Data table class is brought from /vendor/table.php
150-
$this->Table = new PLUGIN_TABLE();
151-
$this->Table->prepare_items();
152-
$this->Table->display(); ?>
149+
<?php // Source /lib/table.php
150+
$table = new PLUGIN_TABLE();
151+
$table->prepare_items();
152+
$table->display(); ?>
153153
</form>
154154
<br class="clear">
155155
</div>

0 commit comments

Comments
 (0)