diff --git a/process/cron/orders.cron b/process/cron/orders.cron index 114a870a5..980f11ee2 100755 --- a/process/cron/orders.cron +++ b/process/cron/orders.cron @@ -11,10 +11,5 @@ fi for GAME in $* do - if [ "$GAME" == "eressea" ]; then GAME=2 ; fi - if [ "$GAME" == "e3a" ]; then GAME=3 ; fi - if [ -e $HOME/eressea/game-$GAME/orders.queue ] - then - $HOME/bin/orders-process $GAME - fi + $HOME/eressea/orders-php/check-orders.sh $GAME done diff --git a/process/orders-accept b/process/orders-accept index 99398e64f..dfadb3aea 100755 --- a/process/orders-accept +++ b/process/orders-accept @@ -2,6 +2,7 @@ # example: orders-accept 2 de < mail.txt game="$1" +lang="$2" [ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea" SCRIPT=$(readlink -f "$0") @@ -21,5 +22,5 @@ filename=$(basename "$ACCEPT_FILE") email="$ACCEPT_MAIL" if [ -d "$ERESSEA/orders-php" ] then - php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email" + php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email" fi