Ignore:
Timestamp:
Sep 8, 2011, 8:22:27 PM (13 years ago)
Author:
rvelices
Message:
  • reoptimize queries for MySql
  • week starts on monday/sunday applies also to weekly calendar
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_tag.inc.php

    r11317 r12118  
    229229  }
    230230  $query .='
    231   GROUP BY tag_id, t.id, t.name, t.url_name';
     231  GROUP BY t.id
     232  ORDER BY ';
    232233  if ($max_tags>0)
    233234  {
    234     $query .= '
    235   ORDER BY counter DESC
     235    $query .= 'counter DESC
    236236  LIMIT '.$max_tags;
     237  }
     238  else
     239  {
     240    $query .= 'NULL';
    237241  }
    238242
Note: See TracChangeset for help on using the changeset viewer.