Skip to content

Commit

Permalink
🔥 Remove code related to ActionLinksModes.
Browse files Browse the repository at this point in the history
Signed-off-by: Temuri Takalandze <takalandzet@gmail.com>
  • Loading branch information
ABGEO committed Jun 28, 2020
1 parent 337161c commit 271eb4f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 174 deletions.

This file was deleted.

28 changes: 0 additions & 28 deletions libraries/classes/Html/ActionLinksModes/Factory.php

This file was deleted.

44 changes: 0 additions & 44 deletions libraries/classes/Html/ActionLinksModes/Image.php

This file was deleted.

41 changes: 0 additions & 41 deletions libraries/classes/Html/ActionLinksModes/Text.php

This file was deleted.

25 changes: 0 additions & 25 deletions libraries/classes/Html/Generator.php
Expand Up @@ -8,7 +8,6 @@
namespace PhpMyAdmin\Html;

use PhpMyAdmin\Core;
use PhpMyAdmin\Html\ActionLinksModes\Factory;
use PhpMyAdmin\Message;
use PhpMyAdmin\Response;
use PhpMyAdmin\Sanitize;
Expand Down Expand Up @@ -126,30 +125,6 @@ public static function showHint($message): string
. '</span>';
}

/**
* Generate a button or image tag
*
* @param string $button_name name of button element
* @param string $button_class class of button or image element
* @param string $text text to display
* @param string $image image to display
* @param string $value value
*
* @return string html content
*
* @access public
*/
public static function getButtonOrImage(
$button_name,
$button_class,
$text,
$image,
$value = ''
): string {
return Factory::build($GLOBALS['cfg']['ActionLinksMode'])
->generate($button_name, $button_class, $text, $image, $value);
}

/**
* returns html code for db link to default db page
*
Expand Down
5 changes: 0 additions & 5 deletions libraries/classes/Twig/UtilExtension.php
Expand Up @@ -46,11 +46,6 @@ public function getFunctions()
'\PhpMyAdmin\Html\Generator::formatSql',
['is_safe' => ['html']]
),
new TwigFunction(
'get_button_or_image',
'\PhpMyAdmin\Html\Generator::getButtonOrImage',
['is_safe' => ['html']]
),
new TwigFunction(
'get_docu_link',
'\PhpMyAdmin\Html\MySQLDocumentation::getDocumentationLink',
Expand Down

0 comments on commit 271eb4f

Please sign in to comment.