... | ... |
@@ -9,6 +9,7 @@ |
9 | 9 |
*/ |
10 | 10 |
|
11 | 11 |
use Contao\Backend; |
12 |
+use Contao\BackendUser; |
|
12 | 13 |
use Contao\ContentModel; |
13 | 14 |
use Contao\Database; |
14 | 15 |
use Contao\DataContainer; |
... | ... |
@@ -329,6 +330,10 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['multiSRC']['load_callback'][] = arra |
329 | 330 |
|
330 | 331 |
class tl_content_eSM_slider extends Backend |
331 | 332 |
{ |
333 |
+ /** |
|
334 |
+ * @var BackendUser |
|
335 |
+ */ |
|
336 |
+ protected $User; |
|
332 | 337 |
|
333 | 338 |
/** |
334 | 339 |
* Import the back end user object |
... | ... |
@@ -336,7 +341,7 @@ class tl_content_eSM_slider extends Backend |
336 | 341 |
public function __construct() |
337 | 342 |
{ |
338 | 343 |
parent::__construct(); |
339 |
- $this->import('BackendUser', 'User'); |
|
344 |
+ $this->User = BackendUser::getInstance(); |
|
340 | 345 |
} |
341 | 346 |
|
342 | 347 |
/** |