Welcome Guest, Not a member yet? Register   Sign In
Pagination Error
#1

[eluser]Shahgeb[/eluser]
I am facing error on pagination libraries in system/application/liberaries/pagination.php

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant AMP - assumed 'AMP'

Filename: libraries/Pagination.php

Line Number: 175



line 175 in pagination libraries is


if ($CI->config->item('enable_query_strings') === TRUE OR $this->page_query_string === TRUE)
{
$this->base_url = rtrim($this->base_url).AMP.$this->query_string_segment.'=';
}
else
{
$this->base_url = rtrim($this->base_url, '/') .'/';
}



any suggestion will be appreciated
#2

[eluser]xwero[/eluser]
for some reason that line is altered, this is the actual code
Code:
$this->base_url = rtrim($this->base_url).'&'.$this->query_string_segment.'=';
#3

[eluser]TheFuzzy0ne[/eluser]
Or simply do:
Code:
define('AMP', '&');

in constants.php




Theme © iAndrew 2016 - Forum software by © MyBB