Update of DBAL sysext to 0.9.9
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / doc / class.tslib_fe.php.diff
1 Index: typo3/sysext/cms/tslib/class.tslib_fe.php
2 ===================================================================
3 RCS file: /cvsroot/typo3/TYPO3core/typo3/sysext/cms/tslib/class.tslib_fe.php,v
4 retrieving revision 1.104.2.25
5 diff -u -w -r1.104.2.25 class.tslib_fe.php
6 --- typo3/sysext/cms/tslib/class.tslib_fe.php 7 Jun 2006 10:02:10 -0000 1.104.2.25
7 +++ typo3/sysext/cms/tslib/class.tslib_fe.php 27 Jun 2006 19:36:14 -0000
8 @@ -1579,16 +1579,22 @@
9
10 $GLOBALS['TT']->push('Cache Query','');
11 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
12 - 'S.*',
13 - 'cache_pages S,pages P',
14 - 'S.hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->newHash, 'cache_pages').'
15 - AND S.page_id=P.uid
16 - AND S.expires > '.intval($GLOBALS['EXEC_TIME']).'
17 - AND P.deleted=0
18 - AND P.hidden=0
19 - AND P.starttime<='.intval($GLOBALS['EXEC_TIME']).'
20 - AND (P.endtime=0 OR P.endtime>'.intval($GLOBALS['EXEC_TIME']).')'
21 + '*',
22 + 'cache_pages',
23 + 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->newHash, 'cache_pages').'
24 + AND expires > '.intval($GLOBALS['EXEC_TIME'])
25 );
26 + if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
27 + $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
28 + 'uid',
29 + 'pages',
30 + 'uid='.$row['page_id'].'
31 + AND deleted=0
32 + AND hidden=0
33 + AND starttime<='.intval($GLOBALS['EXEC_TIME']).'
34 + AND (endtime=0 OR endtime>'.intval($GLOBALS['EXEC_TIME']).')'
35 + );
36 + }
37 $GLOBALS['TT']->pull();
38
39 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {