[Affelio-cvs 74] CVS update: affelio/apps/album

Back to archive index

Yoshihisa Fukuhara higef****@users*****
2005年 6月 20日 (月) 23:26:57 JST


Index: affelio/apps/album/Album.pm
diff -u affelio/apps/album/Album.pm:1.3 affelio/apps/album/Album.pm:1.4
--- affelio/apps/album/Album.pm:1.3	Mon Jun 20 20:04:45 2005
+++ affelio/apps/album/Album.pm	Mon Jun 20 23:26:57 2005
@@ -34,12 +34,13 @@
 	$this->{afap}  = $afap;
 	$this->{uname} = $afap->{af}->{site__username};
 #	$this->{dbpath}= "$databasedir/$this->{uname}";
-	$this->{dbpath}= $afap->get_userdata_dir()."/DB.sqlite";
+	$this->{tmppath}= $afap->get_userdata_dir()."/tmp";
 	$this->{dbh} = undef;
 
         # 初期化
-#	unless(-e $this->{dbpath}) {
-	if (-z $this->{dbpath}){
+	unless(-e $this->{tmppath}) {
+                mkdir $this->{tmppath};
+#	if (-z $this->{dbpath}){
 #	    local (*F);
 #		open(F, "> $this->{dbpath}"); close(F);
 #		chmod 0666, $this->{dbpath};


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