Changeset 13378 for trunk/xmlrpc/BxDolXMLRPCMedia.php
- Timestamp:
- 12/07/09 18:08:12 (2 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc/BxDolXMLRPCMedia.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc/BxDolXMLRPCMedia.php
r13075 r13378 147 147 } 148 148 149 function _getMediaAlbums ($sType, $iIdProfile )149 function _getMediaAlbums ($sType, $iIdProfile, $isShowEmptyAlbums = false) 150 150 { 151 151 switch ($sType) { … … 164 164 bx_import('BxDolAlbums'); 165 165 $o = new BxDolAlbums ($sType, (int)$iIdProfile); 166 $aList = $o->getAlbumList (array('owner' => (int)$iIdProfile ));166 $aList = $o->getAlbumList (array('owner' => (int)$iIdProfile, 'show_empty' => $isShowEmptyAlbums)); 167 167 $aXmlRpc = array (); 168 168 foreach ($aList as $r) … … 212 212 foreach ($a as $k => $aRow) 213 213 { 214 $sToken = ''; 215 if ($sFuncToken) 216 $sToken = $sFuncToken($aRow['id']); 214 if ('youtube' == $aRow['Source']) 215 { 216 $sUrl = $aRow['Video']; 217 } 218 else 219 { 220 $sToken = ''; 221 if ($sFuncToken) 222 $sToken = $sFuncToken($aRow['id']); 217 223 218 $sUrl = $sTokenUrl && $sToken ? BX_DOL_URL_ROOT . $sTokenUrl . $aRow['id'] . '&token=' . $sToken : $aRow['file']; 224 $sUrl = $sTokenUrl && $sToken ? BX_DOL_URL_ROOT . $sTokenUrl . $aRow['id'] . '&token=' . $sToken : $aRow['file']; 225 } 219 226 220 227 $a = array (
Note: See TracChangeset
for help on using the changeset viewer.