Bug 1
====
Description:
[USER] $total value provided by BlogOutput() function to HTML_content::showLinks() function is wrong.
The $total value in BlogOutput() function is number of items in a section/category for pagination usage but the $total value in HTML_content::showLinks() should be number of items to be displayed in a page.
Reported on:
[USER] Joomla version 1.0.11 at least
Classification:
[Q&T] Critical/High/Medium/Low/Enhancement
Affected functions:
[USER] All functions that call BlogOutput() function such as frontpage(), showBlogSection(),showBlogCategory(), showArchiveSection() and showArchiveCategory().
Related files:
[USER] components/com_content/content.php
Steps to replicate:
[USER] Please check the HTML_content::showLinks() function and BlogOutput() function code.
Analysis:
[Q&T] Confirmed/Unable to confirm/Rejected
Any other comments
Proposed fix(es):
[USER] Change the content.php code in line 1301
Code: Select all
HTML_content::showLinks( $rows, $links, $total, $i, $showmore );
Code: Select all
HTML_content::showLinks( $rows, $links, count($rows), $i, $showmore );
[USER] None
System info:
[USER] Non-related
-------------------------------------------------------------------------
Bug 2
====
Description:
[USER] getItemid() function in joomla.php will not return correct $Itemid when it can't find one because it will only return 0 value based on the existing code.
Reported on:
[USER] Joomla version 1.0.11 at least
Classification:
[Q&T] Critical/High/Medium/Low/Enhancement
Affected functions:
[USER] All functions that call getItemid() function.
Related files:
[USER] includes/joomla.php
Steps to replicate:
[USER] Please check the getItemid() function code in joomla.php.
Analysis:
[Q&T] Confirmed/Unable to confirm/Rejected
Any other comments
Proposed fix(es):
[USER] Change the joomla.php code in line 1763 (I include the if...else code from line 1760 to 1766 for clarity)
Code: Select all
if ( $_Itemid != '' ) {
// if Itemid value discovered by queries, return this value
return $_Itemid;
} else if ( $Itemid != 99999999 && $Itemid === 0 ) {
// if queries do not return Itemid value, return Itemid of page - if it is not 99999999
return $Itemid;
}
Code: Select all
if ( $_Itemid != '' ) {
// if Itemid value discovered by queries, return this value
return $_Itemid;
} else if ( $Itemid != 99999999 && $Itemid > 0 ) {
// if queries do not return Itemid value, return Itemid of page - if it is not 99999999
return $Itemid;
}
[USER] None
System info:
[USER] Non-related