|
11 | 11 | use PhpMyAdmin\ConfigStorage\Features\BookmarkFeature; |
12 | 12 | use PhpMyAdmin\ConfigStorage\Relation; |
13 | 13 | use PhpMyAdmin\DatabaseInterface; |
14 | | -use PhpMyAdmin\Dbal\Connection; |
| 14 | +use PhpMyAdmin\Dbal\ConnectionType; |
15 | 15 | use PhpMyAdmin\Identifiers\DatabaseName; |
16 | 16 | use PhpMyAdmin\Util; |
17 | 17 |
|
@@ -93,7 +93,7 @@ public function getList( |
93 | 93 |
|
94 | 94 | $query .= ' ORDER BY label ASC'; |
95 | 95 |
|
96 | | - $result = $this->dbi->fetchResult($query, null, null, Connection::TYPE_CONTROL); |
| 96 | + $result = $this->dbi->fetchResult($query, null, null, ConnectionType::ControlUser); |
97 | 97 |
|
98 | 98 | $bookmarks = []; |
99 | 99 | foreach ($result as $row) { |
@@ -131,7 +131,7 @@ public function get( |
131 | 131 |
|
132 | 132 | $query .= ' LIMIT 1'; |
133 | 133 |
|
134 | | - $result = $this->dbi->fetchSingleRow($query, DatabaseInterface::FETCH_ASSOC, Connection::TYPE_CONTROL); |
| 134 | + $result = $this->dbi->fetchSingleRow($query, DatabaseInterface::FETCH_ASSOC, ConnectionType::ControlUser); |
135 | 135 | if ($result !== null) { |
136 | 136 | return $this->createFromRow($result); |
137 | 137 | } |
@@ -159,7 +159,7 @@ public function getByLabel( |
159 | 159 | . ' AND user = ' . $this->dbi->quoteString($user) |
160 | 160 | . ' LIMIT 1'; |
161 | 161 |
|
162 | | - $result = $this->dbi->fetchSingleRow($query, DatabaseInterface::FETCH_ASSOC, Connection::TYPE_CONTROL); |
| 162 | + $result = $this->dbi->fetchSingleRow($query, DatabaseInterface::FETCH_ASSOC, ConnectionType::ControlUser); |
163 | 163 | if ($result !== null) { |
164 | 164 | return $this->createFromRow($result); |
165 | 165 | } |
|
0 commit comments