Warning: in_array() expects parameter 2 to be array, null given in system/modules/core/library/Contao/System.php on line 140
#0 [internal function]: __error(2, 'in_array() expe...', '/var/www/vhosts...', 140, Array)
#1 system/modules/core/library/Contao/System.php(140): in_array('getInstance', NULL)
#2 system/modules/core/drivers/DC_Table.php(1931): Contao\System->import('tl_content')
#3 system/modules/core/classes/Backend.php(650): Contao\DC_Table->edit()
#4 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('article')
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}
Fatal error: Class 'tl_content' not found in
PHP-Code:
// Anpassung der Palette
$GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = str_replace
(
'teaser',
'teaser,add_teaser_img,teaser_img',
$GLOBALS['TL_DCA']['tl_article']['palettes']['default']
);
// Hinzufügen der Feld-Konfiguration
$GLOBALS['TL_DCA']['tl_article']['fields']['add_teaser_img'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_article']['add_teaser_img'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('submitOnChange'=>true),
'sql' => "char(1) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_article']['fields']['teaser_img'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_article']['teaser_img'],
'exclude' => true,
'inputType' => 'fileTree',
'eval' => array('filesOnly'=>true, 'fieldType'=>'radio', 'mandatory'=>true, 'tl_class'=>'clr'),
'load_callback' => array
(
array('tl_content', 'setSingleSrcFlags')
),
'save_callback' => array
(
array('tl_content', 'storeFileMetaInformation')
),
'sql' => "binary(16) NULL"
);
Lesezeichen