Skip to content

Commit 531bcba

Browse files
committed
Fix MoTranslator integration with current versions
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 25baae4 commit 531bcba

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Defines the core helper infrastructure of the library.
55
*/
66

7-
namespace SqlParser;
7+
namespace PhpMyAdmin\SqlParser;
88

99
class Core
1010
{

src/Translator.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@
44
* Defines the localization helper infrastructure of the library.
55
*/
66

7-
namespace SqlParser;
8-
9-
use PhpMyAdmin\MoTranslator;
7+
namespace PhpMyAdmin\SqlParser;
108

119
class Translator
1210
{
1311
/**
1412
* The MoTranslator loader object.
1513
*
16-
* @var MoTranslator\Loader
14+
* @var \PhpMyAdmin\MoTranslator\Loader
1715
*/
1816
private static $loader;
1917

2018
/**
2119
* The MoTranslator translator object.
2220
*
23-
* @var MoTranslator\Translator
21+
* @var \PhpMyAdmin\MoTranslator\Translator
2422
*/
2523
private static $translator;
2624

@@ -31,7 +29,7 @@ public static function load()
3129
{
3230
if (is_null(self::$loader)) {
3331
// Create loader object
34-
self::$loader = new MoTranslator\Loader();
32+
self::$loader = new \PhpMyAdmin\MoTranslator\Loader();
3533

3634
// Set locale
3735
self::$loader->setlocale(

0 commit comments

Comments
 (0)