Skip to content

Commit

Permalink
Don't check Symphony::Engine(), but look for Administration class ins…
Browse files Browse the repository at this point in the history
…tead
  • Loading branch information
nickdunn committed Jun 17, 2011
1 parent e8b9b45 commit 49bfbde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/class.logquery.php
Expand Up @@ -5,10 +5,12 @@ class LogQuery {
public static $meta_written = FALSE;

static function log($query) {
// prevent execution on the frontend
if(!class_exists('Administration')) return;
//if(!Symphony::Engine() instanceOf Administration) return;

if(!Symphony::Engine() instanceOf Administration) return;
if(Symphony::Configuration()->get('enabled', 'db_sync') == 'no') return;

$tbl_prefix = Symphony::Configuration()->get('tbl_prefix', 'database');

/* FILTERS */
Expand Down

0 comments on commit 49bfbde

Please sign in to comment.