order[=|:]random_#### metatag

possible replacement for random_list ext?
This commit is contained in:
Daku
2014-02-24 19:54:15 +00:00
parent 320a92289b
commit d675827173
4 changed files with 27 additions and 3 deletions

View File

@ -237,7 +237,7 @@ class NumericScore extends Extension {
global $order_sql;
$default_order_for_column = "DESC";
$sort = isset($matches[3]) ? strtoupper($matches[3]) : $default_order_for_column;
$order_sql = "numeric_score $sort";
$order_sql = "images.numeric_score $sort";
$event->add_querylet(new Querylet("1=1")); //small hack to avoid metatag being treated as normal tag
}
}