[turba] api.php and search source order

Chuck Hagenbuch chuck@horde.org
Thu, 26 Sep 2002 19:08:50 -0400


Quoting Stephen Grier <s.e.grier@qmul.ac.uk>:

> I have tracked the cause of this behaviour to the turbaGetSources()
> function of lib/api.php. The search_sources list is split into 2 arrays; 
> those which are read-only, and those not. However, when the 'writable' 
> flag is *not* set, turbaGetSources() calls array_merge() which alters the 
> order of the search sources, rather than returning the original list.

Try what I just committed to CVS:
http://cvs.horde.org/diff.php/turba/lib/api.php?r1=1.14.2.10&r2=1.14.2.11&ty=u

(a bit simpler)

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"People ask me all the time what it will be like living without otters."
 - Google, thanks to Harpers