开发者

Where can I submit improvements in Code for the CMS Joomla?

开发者 https://www.devze.com 2023-02-13 03:13 出处:网络
The Pagination of Joomla doesn\'t allow to make the link of the current page to be linkable. In the file: TEMPLATE_LOCATION > html > pagination.php is a function with the foll开发者_运维问答owing:

The Pagination of Joomla doesn't allow to make the link of the current page to be linkable.

In the file: TEMPLATE_LOCATION > html > pagination.php is a function with the foll开发者_运维问答owing: pagination_item_inactive()

Input variable $item is an object with fields:

$item->base : integer

$item->link : string

$item->text : string

But $item->link is always empty.

The file: libraries > joomla > html > pagination.php within function _buildDataObject()

Line 521 should be changed from:

if ($i != $this->get('pages.current') || $this->_viewall)

to

if (!$this->_viewall)

Kind regards


How is this an improvement? Why would you link to the page you are already on? I am afraid you will probably be outnumbered in this case. Most people are going to want to leave it alone, particularly since you can use JURI::current(); to get that URL if you need it anywhere.

In any case, here is a guide to submitting patches.

http://docs.joomla.org/Patch_submission_guidelines

0

精彩评论

暂无评论...
验证码 换一张
取 消