diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/3rdparty/site_config/standard/moo.nac.uci.edu.txt | 9 | ||||
-rwxr-xr-x | inc/poche/Database.class.php | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/inc/3rdparty/site_config/standard/moo.nac.uci.edu.txt b/inc/3rdparty/site_config/standard/moo.nac.uci.edu.txt new file mode 100644 index 00000000..24c949e9 --- /dev/null +++ b/inc/3rdparty/site_config/standard/moo.nac.uci.edu.txt | |||
@@ -0,0 +1,9 @@ | |||
1 | title: //div[@id='header']//h1[1] | ||
2 | |||
3 | body: //div[@id='content'] | ||
4 | |||
5 | strip_id_or_class: toc | ||
6 | |||
7 | prune: no | ||
8 | |||
9 | test_url: http://moo.nac.uci.edu/~hjm/HOWTO_move_data.html | ||
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 9e901974..dddb2512 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -487,7 +487,7 @@ class Database { | |||
487 | $sql = | 487 | $sql = |
488 | "SELECT entries.* FROM entries | 488 | "SELECT entries.* FROM entries |
489 | LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id | 489 | LEFT JOIN tags_entries ON tags_entries.entry_id=entries.id |
490 | WHERE tags_entries.tag_id = ? AND entries.user_id=?"; | 490 | WHERE tags_entries.tag_id = ? AND entries.user_id=? ORDER by entries.id DESC"; |
491 | $query = $this->executeQuery($sql, array($tag_id, $user_id)); | 491 | $query = $this->executeQuery($sql, array($tag_id, $user_id)); |
492 | $entries = $query->fetchAll(); | 492 | $entries = $query->fetchAll(); |
493 | 493 | ||