Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/classes/Twig/ServerPrivilegesExtension.php')
-rw-r--r--libraries/classes/Twig/ServerPrivilegesExtension.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/classes/Twig/ServerPrivilegesExtension.php b/libraries/classes/Twig/ServerPrivilegesExtension.php
index c1848a501f..14b0e01919 100644
--- a/libraries/classes/Twig/ServerPrivilegesExtension.php
+++ b/libraries/classes/Twig/ServerPrivilegesExtension.php
@@ -10,6 +10,7 @@ declare(strict_types=1);
namespace PhpMyAdmin\Twig;
use PhpMyAdmin\Server\Privileges;
+use PhpMyAdmin\Template;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
@@ -27,7 +28,7 @@ class ServerPrivilegesExtension extends AbstractExtension
*/
public function getFunctions()
{
- $serverPrivileges = new Privileges();
+ $serverPrivileges = new Privileges(new Template());
return [
new TwigFunction(
'ServerPrivileges_formatPrivilege',