Part of the EllisLab Network

Bug Report

undefined contant AMP in Pagination library

Date: 06/28/2008 Severity: Trivial
Status: New Reporter: tzangms
Version: 1.6.3
Keywords: Libraries, Pagination Class

Description

when I set enable_query_string to TRUE, I got these notice message below, with pagination library.

A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant AMP - assumed ‘AMP’
Filename: libraries/Pagination.php
Line Number: 175

Expected Result

Actual Result

Comment on Bug Report

Page 1 of 1 pages
Posted by: delay on 3 July 2008 1:57pm
no avatar

I am having this trouble as well.  Seems it is due to a change from 1.6.2 which didn’t have this trouble.

Posted by: tzangms on 3 July 2008 7:20pm
no avatar

The problem is caused by the pagination’s new feature, that pagination can use query string.
you can replaced AMP to ’&’ as well. :p

Posted by: Bijsterz on 22 September 2008 1:35pm
no avatar

Or you could define it in the constants.php config file

define(‘AMP’, ’&’);

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?