29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-07 20:43:37 +00:00

# [#32315] *regression: Notices or fatal errors for categories menu item display

This commit is contained in:
Achal-Aggarwal 2013-10-20 02:05:58 +02:00 committed by Roberto - phproberto
parent 8661506810
commit 746bd62719
6 changed files with 21 additions and 15 deletions

View File

@ -25,4 +25,10 @@ class ContactViewCategories extends JViewCategories
* @since 3.2
*/
protected $pageHeading = 'COM_CONTACT_DEFAULT_PAGE_TITLE';
/**
* @var string The name of the extension for the category
* @since 3.2
*/
protected $extension = 'com_contact';
}

View File

@ -25,4 +25,10 @@ class ContentViewCategories extends JViewCategories
* @since 3.2
*/
protected $pageHeading = 'JGLOBAL_ARTICLES';
/**
* @var string The name of the extension for the category
* @since 3.2
*/
protected $extension = 'com_content';
}

View File

@ -25,4 +25,10 @@ class NewsfeedsViewCategories extends JViewCategories
* @since 3.2
*/
protected $pageHeading = 'COM_NEWSFEEDS_DEFAULT_PAGE_TITLE';
/**
* @var string The name of the extension for the category
* @since 3.2
*/
protected $extension = 'com_newsfeeds';
}

View File

@ -16,7 +16,7 @@ defined('_JEXEC') or die;
* @subpackage com_weblinks
* @since 1.5
*/
class WeblinksViewCategories extends JViewCategory
class WeblinksViewCategories extends JViewCategories
{
protected $item = null;
@ -82,17 +82,4 @@ class WeblinksViewCategories extends JViewCategory
return parent::display($tpl);
}
/**
* Method to prepares the document
*
* @return void
*
* @since 3.2
*/
protected function prepareDocument()
{
parent::prepareDocument();
parent::addFeed();
}
}

View File

@ -32,6 +32,7 @@ $ -> Language fix or change
# [#32353] Fatal Error: Class 'PlgUserJoomla' not found. Thanks George Wilson
# [#32352] Add class aliases for legacy application classes. Thanks Michael Babker
# [#32326] Control Panel Icon Needs to Change. Thanks Nick Savov
# [#32315] *regression: Notices or fatal errors for categories menu item display. Thanks Achal Aggarwal
18-Oct-2013 Jean-Marie Simonet
# [#32344] *Overrides bug: Warning: constant() [function.constant]: Couldn't find constant JPATH_0

View File

@ -21,7 +21,7 @@ defined('_JEXEC') or die;
<?php //If there is a description in the menu parameters use that; ?>
<?php if($displayData->params->get('categories_description')) : ?>
<div class="category-desc base-desc">
<?php echo JHtml::_('content.prepare', $displayData->params->get('categories_description'), '', $displayData->extension . '.categories'); ?>
<?php echo JHtml::_('content.prepare', $displayData->params->get('categories_description'), '', $displayData->get('extension') . '.categories'); ?>
</div>
<?php else : ?>
<?php //Otherwise get one from the database if it exists. ?>