[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS Update: gleipnir
- To: cvs@lists.cleannorth.org
- Subject: CVS Update: gleipnir
- From: Dan Brosemer <odin@cleannorth.org>
- Date: Sun, 17 Aug 2008 02:30:25 -0400 (EDT)
- List-help: <mailto:cvs-request@lists.cleannorth.org?subject=help>
- List-post: <mailto:cvs@lists.cleannorth.org>
- List-subscribe: <mailto:cvs-request@lists.cleannorth.org?subject=subscribe>
- List-unsubscribe: <mailto:cvs-request@lists.cleannorth.org?subject=unsubscribe>
- Resent-date: Sun, 17 Aug 2008 02:30:28 -0400 (EDT)
- Resent-from: cvs@lists.cleannorth.org
- Resent-message-id: <p5DuAD.A.VUF.aW8pIB@skroob.cleannorth.org>
- Resent-sender: cvs-request@lists.cleannorth.org
Log Message:
-----------
That would be because there is an easier way to do this.
Modified Files:
--------------
gleipnir/public_html/gallery:
upload.pl
Revision Data
-------------
Index: upload.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/gallery/upload.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lpublic_html/gallery/upload.pl -Lpublic_html/gallery/upload.pl -u -r1.4 -r1.5
--- public_html/gallery/upload.pl
+++ public_html/gallery/upload.pl
@@ -59,14 +59,7 @@
push @galleries, { title => $ref->{identifier}, id => $ref->{galleryid} };
}
- # Assemble a username, I could have sworn we had an easier way to do this,
- my $sql = <<EOT;
-select username, fname, lname from cnuser where uid = ?
-EOT
- my $ucursor = $dbh->prepare($sql);
- $ucursor->execute($gleipnir->uid);
- my ($username, $fname, $lname) = $ucursor->fetchrow;
- my $uname = $fname . ' ' . $lname . ' (' . $username . ')';
+ my $uname = $gleipnir->fetch('fname').' '.$gleipnir->fetch('lname').' ('.$gleipnir->fetch('username').')';
$template->param( galleries => \@galleries, uname => $uname );
return $gleipnir->body($template->output);
- Prev by Date: CVS Update: svartalfheim.net
- Next by Date: CVS Update: svartalfheim.net
- Previous by thread: CVS Update: gleipnir
- Next by thread: CVS Update: gleipnir
- Index(es):