Skip to content

Commit cdc13df

Browse files
committed
fix drupal_get_path deprecated
1 parent e7846ca commit cdc13df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/TawktoGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Drupal\tawk_to\core;
44

5-
if (file_exists(drupal_get_path('module', 'tawk_to') . '/vendor/autoload.php')) {
6-
require_once drupal_get_path('module', 'tawk_to') . '/vendor/autoload.php';
5+
if (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
6+
require_once __DIR__ . '/../../vendor/autoload.php';
77
}
88

99
use Drupal\Core\Cache\Cache;

0 commit comments

Comments
 (0)