forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Joachim Müller on October 12, 2004, 07:44:54 am

Title: search bug in CPG 1.4
Post by: Joachim Müller on October 12, 2004, 07:44:54 am
Zvi sent this by PM:
Quote from: Zvi
Hello there,

   I am using cpg1.4 on my site, and search was not working. Turned out the reason was my sort seting, which was set to Position Descending. No matching entry in sort_order array in search.inc.php. Below is the right one. As you can see I added pa and PD entries.

Code: [Select]
$sort_array = array('na' => 'filename ASC', 'nd' => 'filename DESC', 'ta'=>'title ASC', 'td'=>'title DESC', 'da' => 'pid ASC', 'dd' => 'pid DESC', 'pa' => 'position ASC', 'pd' => 'position DESC');
Pardon if I was not supposed to send this to you, donno how do you go about bugfixes.
Title: Re: search bug in CPG 1.4
Post by: Joachim Müller on October 23, 2004, 11:01:34 am
committed to dev cvs

Joachim