Log in

View Full Version : how can i get something from datastore


booktoweb
01-27-2009, 05:57 AM
hi,

i want to get array i stored it in datastore
i using this
$specialtemplates = array_merge( $specialtemplates, array('best_thread') );

i put it in many plugin's like ( init_startup, cache_templates )
but it doesn't get with datastore query

Dismounted
01-27-2009, 07:33 AM
Merge your array into $datastore_fetch at init_startup.

booktoweb
01-27-2009, 09:21 AM
i put this

$datastore_fetch[] = "'best_thread'";

in hook init_startup

but it get it in single query

SELECT *
FROM datastore
WHERE title IN ('best_thread')

i want to catch it in the same query

Dismounted
01-27-2009, 09:27 AM
You can't, not without editing the file. Look in init.php yourself.