Assembla home | Assembla project page
 

Changeset 1009

Show
Ignore:
Timestamp:
07/02/08 21:32:07 (5 months ago)
Author:
Pernod
Message:

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

Fixes #133

Files:

Legend:

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

    r937 r1009  
    204204} 
    205205 
     206function check_swiss_write_cache_dir() 
     207{ 
     208  return is_writeable(get_sys_pref('cache_dir'));   
     209} 
     210 
    206211function check_swiss_ini_file() 
    207212{ 
  • trunk/swisscenter/config/config_check.php

    r937 r1009  
    136136  $core_tests->add_test( $swiss, check_swiss_write_rootdir(), str("PASS_SWISS_RW_FILES"), str("MISSING_PERMS_TEXT")); 
    137137  $core_tests->add_test( $swiss, check_swiss_ini_file(), str("PASS_SWISS_INI"), str("FAIL_SWISS_INI")); 
     138  $core_tests->add_test( $swiss, check_swiss_write_cache_dir(), str("PASS_SWISS_CACHE"), str("FAIL_SWISS_CACHE", get_sys_pref('cache_dir')) ); 
    138139  $core_tests->add_test( $swiss, check_swiss_write_log_dir(), str("PASS_SWISS_LOG"), str("FAIL_SWISS_LOG", logfile_location()) ); 
    139140                       
  • trunk/swisscenter/lang/en/en.xml

    r1008 r1009  
    10591059      </string> 
    10601060      <string> 
     1061        <id>FAIL_SWISS_CACHE</id> 
     1062        <text>Unable to write to the SwissCenter cache directory (%s).</text> 
     1063        <version>1.20.1</version> 
     1064      </string> 
     1065      <string> 
    10611066        <id>FAIL_SWISS_INI</id> 
    10621067        <text>Unable to locate the 'swisscenter.ini' file. [br]Have you created a SwissCenter database yet?</text> 
     
    23342339      </string> 
    23352340      <string> 
     2341        <id>PASS_SWISS_CACHE</id> 
     2342        <text>Able to Read/Write to the SwissCenter cache directory.</text> 
     2343        <version>1.20.1</version> 
     2344      </string> 
     2345      <string> 
    23362346        <id>PASS_SWISS_INI</id> 
    23372347        <text>Successfully located the 'swisscenter.ini' file.</text>