Prepare for 5.0.4-dev
[phpmyadmin.git] / tbl_recent_favorite.php
blobb19360a2abc2b2aaf8adfeb9475809d3ac63dade
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Browse recent and favourite tables chosen from navigation
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\RecentFavoriteTable;
12 if (! defined('ROOT_PATH')) {
13 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
16 require_once ROOT_PATH . 'libraries/common.inc.php';
18 RecentFavoriteTable::getInstance('recent')
19 ->removeIfInvalid($_REQUEST['db'], $_REQUEST['table']);
21 RecentFavoriteTable::getInstance('favorite')
22 ->removeIfInvalid($_REQUEST['db'], $_REQUEST['table']);
24 require ROOT_PATH . 'sql.php';