[Affelio-cvs 411] CVS update: affelio/lib/Affelio/App/Admin

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 7月 1日 (金) 04:08:49 JST


Index: affelio/lib/Affelio/App/Admin/AffelioNews.pm
diff -u affelio/lib/Affelio/App/Admin/AffelioNews.pm:1.5 affelio/lib/Affelio/App/Admin/AffelioNews.pm:1.6
--- affelio/lib/Affelio/App/Admin/AffelioNews.pm:1.5	Thu Jun 30 18:05:43 2005
+++ affelio/lib/Affelio/App/Admin/AffelioNews.pm	Fri Jul  1 04:08:49 2005
@@ -4,7 +4,7 @@
 #    http://affelio.jp/ (Japan)
 #    http://affelio.jp/ (USA and other area)
 #
-# $Id: AffelioNews.pm,v 1.5 2005/06/30 09:05:43 slash5234 Exp $
+# $Id: AffelioNews.pm,v 1.6 2005/06/30 19:08:49 slash5234 Exp $
 
 package Affelio::App::Admin::AffelioNews;
 {
@@ -47,7 +47,7 @@
 	if($@){
 	}else{
 	    $updated_time = <IN>;
-	    if($cur_time < $updated_time + 030000){
+	    if($cur_time < $updated_time + 010000){
 		return;
 	    }
 	}
@@ -55,10 +55,14 @@
 
 	my $url = "http://home1.affelio.jp/affelio_news/" 
 	    . $af->{site__locale} . "/index.txt";
+	if($af->{site__locale} eq "en_us"){
+	    $url = "http://affelio.us/affelio_news/en_us/index.txt";
+	}
 
 	my $data = LWP::Simple::get($url);
 	if($@){
-	    throw Affelio::exception::NetworkException("Network connection error to affelio web site");
+	    #throw Affelio::exception::NetworkException("Network connection error to affelio web site");
+	    return();
 	}
 
 	sysopen(OUT, "$af->{site__user_dir}/AffelioNews/news.html", 


Affelio-cvs メーリングリストの案内
Back to archive index