Assembla home | Assembla project page
 

Changeset 1018

Show
Ignore:
Timestamp:
07/12/08 18:40:54 (4 months ago)
Author:
Pernod
Message:

Added a check in the System Tests to ensure the playlists location is valid.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/base/install_checks.php

    r1009 r1018  
    209209} 
    210210 
     211function check_swiss_write_playlist_dir() 
     212{ 
     213  $result =  ( is_readable(get_sys_pref('playlists')) && is_writable(get_sys_pref('playlists')) );   
     214 
     215  if (!$result) 
     216    send_to_log(5,'- Unable to access playlist directory ('.get_sys_pref('playlists').').'); 
     217       
     218  return $result; 
     219} 
     220 
    211221function check_swiss_ini_file() 
    212222{ 
  • trunk/swisscenter/config/config_check.php

    r1009 r1018  
    137137  $core_tests->add_test( $swiss, check_swiss_ini_file(), str("PASS_SWISS_INI"), str("FAIL_SWISS_INI")); 
    138138  $core_tests->add_test( $swiss, check_swiss_write_cache_dir(), str("PASS_SWISS_CACHE"), str("FAIL_SWISS_CACHE", get_sys_pref('cache_dir')) ); 
     139  $core_tests->add_test( $swiss, check_swiss_write_playlist_dir(), str("PASS_SWISS_PLAYLIST"), str("FAIL_SWISS_PLAYLIST", get_sys_pref('playlists')) ); 
    139140  $core_tests->add_test( $swiss, check_swiss_write_log_dir(), str("PASS_SWISS_LOG"), str("FAIL_SWISS_LOG", logfile_location()) ); 
    140141                       
  • trunk/swisscenter/lang/en/en.xml

    r1015 r1018  
    10691069      </string> 
    10701070      <string> 
     1071        <id>FAIL_SWISS_PLAYLIST</id> 
     1072        <text>Unable to write to the SwissCenter playlists directory (%s).</text> 
     1073        <version>1.20.1</version> 
     1074      </string> 
     1075      <string> 
    10711076        <id>FILENAME</id> 
    10721077        <text>Filename</text> 
     
    23692374      </string> 
    23702375      <string> 
     2376        <id>PASS_SWISS_PLAYLIST</id> 
     2377        <text>Able to Read/Write to the SwissCenter playlists directory.</text> 
     2378        <version>1.20.1</version> 
     2379      </string> 
     2380      <string> 
    23712381        <id>PASS_SWISS_ROOT_INS</id> 
    23722382        <text>Installation was as a user other than root.</text>