Skip to content

Commit

Permalink
Removed namespace
Browse files Browse the repository at this point in the history
Removed tl_settings.php files
  • Loading branch information
kozi committed Sep 30, 2014
1 parent 5c50939 commit 19b4366
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 55 deletions.
2 changes: 0 additions & 2 deletions contao/classes/MetafieldsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
* @filesource
*/

namespace AdditionalMetafields;

/**
* Class MetafieldsHelper
*
Expand Down
8 changes: 3 additions & 5 deletions contao/config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
));


9 changes: 3 additions & 6 deletions contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,7 +26,6 @@
)
));


if (TL_MODE == 'BE') {
$GLOBALS['TL_CSS'][] = "/system/modules/additional_metafields/assets/style.css";
}
Expand Down
2 changes: 0 additions & 2 deletions contao/config/runonce.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
* @filesource
*/

use \AdditionalMetafields\MetafieldsModel;

class MetafieldsRunonceJob extends \Controller {

public function __construct() {
Expand Down
21 changes: 0 additions & 21 deletions contao/dca/tl_settings.php

This file was deleted.

3 changes: 2 additions & 1 deletion contao/languages/de/default.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

$GLOBALS['TL_LANG']['MOD']['metafields'] = array ('Metadaten', 'Metadaten-Attribute für Dateien und Ordner festlegen');
$GLOBALS['TL_LANG']['MOD']['metafields'] = array ('Metadaten', 'Metadaten-Attribute für Dateien und Ordner festlegen');

3 changes: 2 additions & 1 deletion contao/languages/de/tl_metafields.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@

$GLOBALS['TL_LANG']['tl_metafields']['new'] = array('Neues Attribut', 'Neues Attribut anlegen');
$GLOBALS['TL_LANG']['tl_metafields']['edit'] = array('Attribut editieren', 'Attribut editieren');
$GLOBALS['TL_LANG']['tl_metafields']['delete'] = array('Attribut löschen', 'Attribut löschen');
$GLOBALS['TL_LANG']['tl_metafields']['delete'] = array('Attribut löschen', 'Attribut löschen');

5 changes: 0 additions & 5 deletions contao/languages/de/tl_settings.php

This file was deleted.

3 changes: 2 additions & 1 deletion contao/languages/en/default.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php

$GLOBALS['TL_LANG']['MOD']['metafields'] = array ('Metadata', 'Set metadata attributes for files and folders');
$GLOBALS['TL_LANG']['MOD']['metafields'] = array ('Metadata', 'Set metadata attributes for files and folders');

2 changes: 2 additions & 0 deletions contao/languages/en/tl_metafields.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
$GLOBALS['TL_LANG']['tl_metafields']['extensions'] = array('Extensions', 'Extensions');




4 changes: 0 additions & 4 deletions contao/languages/en/tl_settings.php

This file was deleted.

5 changes: 0 additions & 5 deletions contao/models/MetafieldsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
*/


/**
* Run in a custom namespace, so the class can be replaced
*/
namespace AdditionalMetafields;

/**
* Class MetafieldsModel
*
Expand Down
2 changes: 0 additions & 2 deletions contao/widgets/MetaWizardPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
* @filesource
*/

namespace AdditionalMetafields;

/**
* Class MetaWizardPlus
*
Expand Down

0 comments on commit 19b4366

Please sign in to comment.