Bug #15848 » dam.quotes.patch
dam/lib/class.tx_dam_db.php 2006-05-15 21:51:08.000000000 +0200 | ||
---|---|---|
static $pid = 0;
|
||
if(!$pid AND is_object($GLOBALS['TYPO3_DB'])) {
|
||
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'doktype=2 and module="dam" AND deleted=0');
|
||
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'doktype=2 and module='.$GLOBALS['TYPO3_DB']->fullQuoteStr('dam', 'pages').' AND deleted=0');
|
||
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
|
||
$pid = $row['uid'];
|
||
} else {
|
dam/lib/class.tx_dam_sysfolder.php 2006-05-15 21:51:06.000000000 +0200 | ||
---|---|---|
*/
|
||
function getAvailable() {
|
||
$rows=array();
|
||
if ($damFolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,title', 'pages', 'doktype=2 and module="dam" AND deleted=0', '', '', '', 'uid')) {
|
||
if ($damFolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,title', 'pages', 'doktype=2 and module='.$GLOBALS['TYPO3_DB']->fullQuoteStr('dam', 'pages').' AND deleted=0', '', '', '', 'uid')) {
|
||
$rows = $damFolders;
|
||
}
|
||
return $rows;
|