HomeHelpTrac

Ignore:
Timestamp:
12/07/09 18:08:12 (2 years ago)
Author:
Alexander Trofimov
Message:

Ticket #543

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCMedia.php

    r13075 r13378  
    147147    } 
    148148 
    149     function _getMediaAlbums ($sType, $iIdProfile)  
     149    function _getMediaAlbums ($sType, $iIdProfile, $isShowEmptyAlbums = false) 
    150150    {         
    151151        switch ($sType) { 
     
    164164        bx_import('BxDolAlbums'); 
    165165        $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)); 
    167167        $aXmlRpc = array (); 
    168168        foreach ($aList as $r) 
     
    212212        foreach ($a as $k => $aRow) 
    213213        { 
    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']); 
    217223           
    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            } 
    219226 
    220227            $a = array ( 
Note: See TracChangeset for help on using the changeset viewer.