From 19b436645977c6b004ab5233c3042a145524a22f Mon Sep 17 00:00:00 2001 From: kozi Date: Tue, 30 Sep 2014 12:03:45 +0200 Subject: [PATCH] Removed namespace Removed tl_settings.php files --- contao/classes/MetafieldsHelper.php | 2 -- contao/config/autoload.php | 8 +++----- contao/config/config.php | 9 +++------ contao/config/runonce.php | 2 -- contao/dca/tl_settings.php | 21 --------------------- contao/languages/de/default.php | 3 ++- contao/languages/de/tl_metafields.php | 3 ++- contao/languages/de/tl_settings.php | 5 ----- contao/languages/en/default.php | 3 ++- contao/languages/en/tl_metafields.php | 2 ++ contao/languages/en/tl_settings.php | 4 ---- contao/models/MetafieldsModel.php | 5 ----- contao/widgets/MetaWizardPlus.php | 2 -- 13 files changed, 14 insertions(+), 55 deletions(-) delete mode 100644 contao/dca/tl_settings.php delete mode 100644 contao/languages/de/tl_settings.php delete mode 100644 contao/languages/en/tl_settings.php diff --git a/contao/classes/MetafieldsHelper.php b/contao/classes/MetafieldsHelper.php index 3664ef5..fc236d0 100644 --- a/contao/classes/MetafieldsHelper.php +++ b/contao/classes/MetafieldsHelper.php @@ -13,8 +13,6 @@ * @filesource */ -namespace AdditionalMetafields; - /** * Class MetafieldsHelper * diff --git a/contao/config/autoload.php b/contao/config/autoload.php index 39e5deb..9ac782c 100644 --- a/contao/config/autoload.php +++ b/contao/config/autoload.php @@ -13,12 +13,10 @@ * @filesource */ -ClassLoader::addNamespace('AdditionalMetafields'); - ClassLoader::addClasses(array( - 'AdditionalMetafields\MetafieldsHelper' => 'system/modules/additional_metafields/classes/MetafieldsHelper.php', - 'AdditionalMetafields\MetaWizardPlus' => 'system/modules/additional_metafields/widgets/MetaWizardPlus.php', - 'AdditionalMetafields\MetafieldsModel' => 'system/modules/additional_metafields/models/MetafieldsModel.php', + 'MetafieldsHelper' => 'system/modules/additional_metafields/classes/MetafieldsHelper.php', + 'MetaWizardPlus' => 'system/modules/additional_metafields/widgets/MetaWizardPlus.php', + 'MetafieldsModel' => 'system/modules/additional_metafields/models/MetafieldsModel.php', )); diff --git a/contao/config/config.php b/contao/config/config.php index 355b475..1feef20 100644 --- a/contao/config/config.php +++ b/contao/config/config.php @@ -13,12 +13,10 @@ * @filesource */ -$GLOBALS['TL_HOOKS']['getContentElement'][] = array('AdditionalMetafields\MetafieldsHelper', 'injectMetaData'); -$GLOBALS['TL_HOOKS']['parseArticles'][] = array('AdditionalMetafields\MetafieldsHelper', 'injectMetaDataArticleImage'); +$GLOBALS['TL_HOOKS']['getContentElement'][] = array('MetafieldsHelper', 'injectMetaData'); +$GLOBALS['TL_HOOKS']['parseArticles'][] = array('MetafieldsHelper', 'injectMetaDataArticleImage'); -$GLOBALS['BE_FFL']['metaWizardPlus'] = 'AdditionalMetafields\MetaWizardPlus'; - -$GLOBALS['TL_MODELS']['tl_metafields'] = 'AdditionalMetafields\MetafieldsModel'; +$GLOBALS['BE_FFL']['metaWizardPlus'] = 'MetaWizardPlus'; array_insert($GLOBALS['BE_MOD']['system'], 1, array( 'metafields' => array @@ -28,7 +26,6 @@ ) )); - if (TL_MODE == 'BE') { $GLOBALS['TL_CSS'][] = "/system/modules/additional_metafields/assets/style.css"; } diff --git a/contao/config/runonce.php b/contao/config/runonce.php index 629a9aa..048866e 100644 --- a/contao/config/runonce.php +++ b/contao/config/runonce.php @@ -13,8 +13,6 @@ * @filesource */ -use \AdditionalMetafields\MetafieldsModel; - class MetafieldsRunonceJob extends \Controller { public function __construct() { diff --git a/contao/dca/tl_settings.php b/contao/dca/tl_settings.php deleted file mode 100644 index b870323..0000000 --- a/contao/dca/tl_settings.php +++ /dev/null @@ -1,21 +0,0 @@ - - * @author Martin Kozianka - * @package additional_metafields - * @license LGPL - * @filesource - */ - -$GLOBALS['TL_DCA']['tl_settings']['palettes']['default'] .= ';{additional_metafields_legend:hide},additional_metafields_exts'; - -$GLOBALS['TL_DCA']['tl_settings']['fields']['additional_metafields_exts'] = array( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['additional_metafields_exts'], - 'inputType' => 'text' -); \ No newline at end of file diff --git a/contao/languages/de/default.php b/contao/languages/de/default.php index 31798f9..fc0a7e9 100644 --- a/contao/languages/de/default.php +++ b/contao/languages/de/default.php @@ -1,3 +1,4 @@