Changeset 1714

Show
Ignore:
Timestamp:
08/30/08 13:09:10 (3 months ago)
Author:
vollmerk
Message:

sync to trunk

Location:
trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/docs/CHANGELOG

    r1703 r1714  
    55-------------------------------------------------------------------------- 
    66  v.3.5-Alpha1 
     7        - Fixed Dynamic Random/Related URLs with players that always send 
     8                a byte offset (MPD) 
     9        - Added Checkbox to use existing Database 
    710        - Updated language code and Fixed catalan language code 
    811        - Added Emulate gettext() from upgradephp-15 
  • trunk/play/index.php

    r1707 r1714  
    138138 */ 
    139139if ($random) {  
    140         if (!isset($start)) {  
     140        if ($start < 1) {  
    141141                $song_id = Random::get_single_song($_REQUEST['type']);  
    142142                // Save this one incase we do a seek 
     
    159159} 
    160160 
    161 /* If we don't have a file, or the file is not readable */ 
    162 if (!$song->file OR ( !is_readable($song->file) AND $catalog->catalog_type != 'remote' ) ) {  
    163  
    164         // We need to make sure this isn't democratic play, if it is then remove the song 
    165         // from the vote list 
    166         if (is_object($tmp_playlist)) {  
    167                 $tmp_playlist->delete_track($song_id);  
    168         } 
    169  
    170         debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 
    171         echo "Error: Invalid Song Specified, file not found or file unreadable";  
    172         exit;  
    173 } 
     161 
    174162 
    175163         
     
    212200        exit; 
    213201} // end if remote catalog 
     202 
     203/* If we don't have a file, or the file is not readable */ 
     204if (!$song->file OR !is_readable($song->file)) {  
     205 
     206        // We need to make sure this isn't democratic play, if it is then remove the song 
     207        // from the vote list 
     208        if (is_object($tmp_playlist)) {  
     209                $tmp_playlist->delete_track($song_id);  
     210        } 
     211 
     212        debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 
     213        echo "Error: Invalid Song Specified, file not found or file unreadable";  
     214        exit;  
     215} 
    214216 
    215217// make fread binary safe 
  • trunk/server/ajax.server.php

    r1681 r1714  
    234234                        case 'album':  
    235235                        case 'artist':  
    236                         case 'genre':  
     236                        case 'tag':  
    237237                                $object = new $_REQUEST['type']($_REQUEST['id']);  
    238238                                $songs = $object->get_songs();  
     
    250250                        case 'album_random':  
    251251                        case 'artist_random':  
    252                         case 'genre_random': 
     252                        case 'tag_random': 
    253253                                $data = explode('_',$_REQUEST['type']);  
    254254                                $type = $data['0']; 
  • trunk/templates/rightbar.inc.php

    r1525 r1714  
    6666           </li> 
    6767           <li> 
    68             <?php echo Ajax::text('?action=basket&type=dynamic&random_type=genre',_('Related Genre'),'rb_add_related_genre'); ?> 
     68            <?php echo Ajax::text('?action=basket&type=dynamic&random_type=tag',_('Related Tag'),'rb_add_related_tag'); ?> 
    6969           </li> 
    7070          </ul>