From 467a7aac95e23aba9a1c940390bbe09c7c364375 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 19 Jan 2018 13:52:53 +0200 Subject: [PATCH] Added some checks to lang array, adapted the notice board --- README.md | 2 +- admin/README.txt | 2 +- admin/models/language_translations.php | 7 +++++-- admin/views/componentbuilder/tmpl/default.php | 8 ++++---- ...p => default_notice_board_vast_development_method.php} | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) rename admin/views/componentbuilder/tmpl/{default_vast_development_method_notice_board.php => default_notice_board_vast_development_method.php} (95%) diff --git a/README.md b/README.md index 5b96e453a..ced6e2e9f 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Component Builder is mapped as a component in itself on my local development env + *Version*: 2.6.12 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **180462** ++ *Line count*: **180465** + *Field count*: **1573** + *File count*: **1160** + *Folder count*: **186** diff --git a/admin/README.txt b/admin/README.txt index 5b96e453a..ced6e2e9f 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -130,7 +130,7 @@ Component Builder is mapped as a component in itself on my local development env + *Version*: 2.6.12 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **180462** ++ *Line count*: **180465** + *Field count*: **1573** + *File count*: **1160** + *Folder count*: **186** diff --git a/admin/models/language_translations.php b/admin/models/language_translations.php index 0bbb4e9cc..c682b59e4 100644 --- a/admin/models/language_translations.php +++ b/admin/models/language_translations.php @@ -440,9 +440,12 @@ class ComponentbuilderModelLanguage_translations extends JModelList $headers->id = 'id'; $headers->English = 'English'; // add the languages - foreach ($languages as $language) + if (ComponentbuilderHelper::checkArray($languages)) { - $headers->{$language} = $language; + foreach ($languages as $language) + { + $headers->{$language} = $language; + } } return $headers; } diff --git a/admin/views/componentbuilder/tmpl/default.php b/admin/views/componentbuilder/tmpl/default.php index a8a058e46..93b8a0205 100644 --- a/admin/views/componentbuilder/tmpl/default.php +++ b/admin/views/componentbuilder/tmpl/default.php @@ -91,12 +91,12 @@ JHtml::_('behavior.tooltip'); - +
- 'vast_development_method_one')); ?> - - loadTemplate('vast_development_method_notice_board');?> + 'notice_board_one')); ?> + + loadTemplate('notice_board_vast_development_method');?>
diff --git a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php b/admin/views/componentbuilder/tmpl/default_notice_board_vast_development_method.php similarity index 95% rename from admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php rename to admin/views/componentbuilder/tmpl/default_notice_board_vast_development_method.php index b48d130ce..9c9f76933 100644 --- a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php +++ b/admin/views/componentbuilder/tmpl/default_notice_board_vast_development_method.php @@ -13,7 +13,7 @@ @version 2.6.x @created 30th April, 2015 @package Component Builder - @subpackage default_vast_development_method_notice_board.php + @subpackage default_notice_board_vast_development_method.php @author Llewellyn van der Merwe @github Joomla Component Builder @copyright Copyright (C) 2015. All Rights Reserved