Ignore:
Timestamp:
May 23, 2008, 12:15:48 PM (16 years ago)
Author:
rvelices
Message:
  • merge r2355 from 1.7 to trunk: fix display of menubar related tags in IE7
  • optimized sql query in permalinks
  • remove some unused global variable declarations
  • fix bug in admin/themeconf.inc.php
File:
1 edited

Legend:

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

    r2339 r2356  
    366366  }
    367367  $query ='
    368 SELECT c.id, op.permalink, 1 AS is_old
    369   FROM '.OLD_PERMALINKS_TABLE.' op INNER JOIN '.CATEGORIES_TABLE.' c
    370     ON op.cat_id=c.id
    371   WHERE op.permalink IN ('.$in.')
     368SELECT cat_id AS id, permalink, 1 AS is_old
     369  FROM '.OLD_PERMALINKS_TABLE.'
     370  WHERE permalink IN ('.$in.')
    372371UNION
    373372SELECT id, permalink, 0 AS is_old
Note: See TracChangeset for help on using the changeset viewer.