1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Add plugin AdminerEditorViews (fix #905)

This commit is contained in:
Jakub Vrana
2025-03-12 05:22:57 +01:00
parent 5504a617d0
commit dd3cc4e683
3 changed files with 20 additions and 3 deletions

14
plugins/editor-views.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
/** Display views in Adminer Editor
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerEditorViews {
function tableName($tableStatus) {
return Adminer\h($tableStatus["Comment"] != "" ? $tableStatus["Comment"] : $tableStatus["Name"]);
}
}