Assembla home | Assembla project page
 

Changeset 1020

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

Configuring schedule on Linux now defaults to '*', all values for any non specified parameters. The minute field must always be specified, otherwise any scheduled media searches would start every minute!

Fixes #119

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/config/config_sched.php

    r937 r1020  
    311311  function sched_update_linux() 
    312312  {    
    313     $hrs    = $_REQUEST["hour"]
     313    $hrs    = ($_REQUEST["hour"] =='' ? '*' : $_REQUEST["hour"])
    314314    $mins   = $_REQUEST["minute"]; 
    315     $dates  = $_REQUEST["date"]
    316     $months = $_REQUEST["month"]
    317     $days   = $_REQUEST["day"]
     315    $dates  = ($_REQUEST["date"] =='' ? '*' : $_REQUEST["date"])
     316    $months = ($_REQUEST["month"]=='' ? '*' : $_REQUEST["month"])
     317    $days   = ($_REQUEST["day"]  =='' ? '*' : $_REQUEST["day"])
    318318     
    319319    if ( preg_match("/[^-,*0123456789]/",($hrs.$mins.$dates.$months.$days)) != 0) 
    320320      sched_display('!'.str('SCHEDULE_ERROR_CHARS','"0123456789-,*"')); 
    321     elseif ($hrs == '' || $mins == '' || $dates == '' || $months == '' || $days == '') 
     321    elseif ($mins == '') 
    322322      sched_display('!'.str('SCHEDULE_ERROR_FIELDS')); 
    323323    else 
  • trunk/swisscenter/lang/en/en.xml

    r1018 r1020  
    31703170      <string> 
    31713171        <id>SCHEDULE_ERROR_FIELDS</id> 
    3172         <text>You must specify a value for every field</text> 
    3173         <version>1.19</version> 
     3172        <text>You must always specify a value for the minute</text> 
     3173        <version>1.20.1</version> 
    31743174      </string> 
    31753175      <string>