开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜