[drupal-support] Re: drupal 4.6.0 - missing categories block?
Paul Byrne
paul at leafish.co.uk
Tue Apr 19 12:16:29 UTC 2005
Stefan Nagtegaal wrote:
> Well, I'm not sure but I thought that db_query() was deprecated, because
> it does not respect the 'node access'-api..
> IMHO you should change 'db_query()' into 'db_rewrite_sql()'..
> Se the documentation here:
> http://drupaldocs.org/api/head/function/db_rewrite_sql
Nearly, but not quite ;)
You should replace:
db_query($sql)
with:
db_query(db_rewrite_sql($sql));
Or somesuch.
P
--
paul byrne <paul at leafish.co.uk>
web monkey <http://www.leafish.co.uk/>
More information about the drupal-support
mailing list