Skip to content

Commit

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


namespace AdditionalMetafields;

/**
* Class MetafieldsHelper
*
Expand Down Expand Up @@ -125,11 +128,13 @@ private function getMultiMetaData($multiSRC) {
if (!$objFile->isGdImage) {
continue;
}

$images[$objFile->path] = $this->getMetaData($objSubfiles->meta, $objPage->language);
}
}
}
} // END if($objFiles !== null)

return $images;
}

Expand Down
7 changes: 4 additions & 3 deletions contao/config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
* @license LGPL
* @filesource
*/
ClassLoader::addNamespace('AdditionalMetafields');

ClassLoader::addClasses(array(
'MetafieldsHelper' => 'system/modules/additional_metafields/classes/MetafieldsHelper.php',
'MetaWizardPlus' => 'system/modules/additional_metafields/widgets/MetaWizardPlus.php',
'MetafieldsModel' => 'system/modules/additional_metafields/models/MetafieldsModel.php',
'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',
));


7 changes: 4 additions & 3 deletions contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
* @filesource
*/

$GLOBALS['TL_HOOKS']['getContentElement'][] = array('MetafieldsHelper', 'injectMetaData');
$GLOBALS['TL_HOOKS']['parseArticles'][] = array('MetafieldsHelper', 'injectMetaDataArticleImage');
$GLOBALS['TL_HOOKS']['getContentElement'][] = array('AdditionalMetafields\MetafieldsHelper', 'injectMetaData');
$GLOBALS['TL_HOOKS']['parseArticles'][] = array('AdditionalMetafields\MetafieldsHelper', 'injectMetaDataArticleImage');

$GLOBALS['BE_FFL']['metaWizardPlus'] = 'MetaWizardPlus';
$GLOBALS['BE_FFL']['metaWizardPlus'] = 'AdditionalMetafields\MetaWizardPlus';
$GLOBALS['TL_MODELS']['tl_metafields'] = 'AdditionalMetafields\MetafieldsModel';

array_insert($GLOBALS['BE_MOD']['system'], 1, array(
'metafields' => array
Expand Down
2 changes: 1 addition & 1 deletion contao/models/MetafieldsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license LGPL
* @filesource
*/

namespace AdditionalMetafields;

/**
* Class MetafieldsModel
Expand Down
1 change: 1 addition & 0 deletions contao/widgets/MetaWizardPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* @license LGPL
* @filesource
*/
namespace AdditionalMetafields;

/**
* Class MetaWizardPlus
Expand Down

0 comments on commit 69487fe

Please sign in to comment.