Skip to content

Commit

Permalink
Update contenttype.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bembelimen committed Nov 3, 2014
1 parent e62a2f0 commit 63dd163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/cms/form/field/contenttype.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ protected function getOptions()
{
// Make up the string from the component sys.ini file
$parts = explode('.', $option->alias);
$comp = $parts[0];
$comp = array_shift($parts);

// Make sure the component sys.ini is loaded
$lang->load($comp . '.sys', JPATH_ADMINISTRATOR, null, false, true)
|| $lang->load($comp . '.sys', JPATH_ADMINISTRATOR . '/components/' . $comp, null, false, true);

$option->string = mb_strtoupper(str_replace(' ', '_', $option->text), 'UTF-8');
$option->string = implode('_', $parts);
$option->string = $comp . '_CONTENT_TYPE_' . $option->string;

if ($lang->hasKey($option->string))
Expand Down

0 comments on commit 63dd163

Please sign in to comment.