Gossamer Forum
Quote Reply
Re: [brewt] 404 issue In reply to
Hi Adrian,


looks like it was my mistake:

$Id: Page.pm,v 1.27 2006/08/23 22:21:52 brewt Exp $

works fine.

I am just a little bit worried because I have two revisions with the same date and version, one with:

Code:
# Now we get the ID number of the category based on the URL.
my $cat_db = $DB->table('Category');
my $id;
if ($CFG->{build_category_dynamic} eq 'ID' or $page =~ /^\d+$/) {
($id) = $page =~ /(\d+)$/;
}
else {
$id = $cat_db->select(ID => { ($CFG->{build_category_dynamic} || 'Full_Name') => $page })->fetchrow;
}

and one with

Code:
# Now we get the ID number of the category based on the URL.
my $cat_db = $DB->table('Category');
my $id;
if ($CFG->{build_category_dynamic} eq 'ID' or $page =~ /^\d+$/) {
($id) = $page =~ /(\d+)$/;
# Make sure the ID is valid
$id = $cat_db->select(ID => { ID => $id })->fetchrow;
}
else {
$id = $cat_db->select(ID => { ($CFG->{build_category_dynamic} || 'Full_Name') => $page })->fetchrow;
}

which obviously has the ID check. Maybe I messed something up Crazy.

Thank you for your feedback.

n||i||k||o
Code:
Subject Author Views Date
Thread 404 issue el noe 4013 Jun 24, 2008, 3:03 PM
Thread Re: [el noe] 404 issue
brewt 3923 Jun 25, 2008, 12:25 AM
Thread Re: [brewt] 404 issue
el noe 3930 Jun 25, 2008, 12:50 AM
Thread Re: [el noe] 404 issue
brewt 3922 Jun 25, 2008, 1:05 AM
Post Re: [brewt] 404 issue
el noe 3892 Jun 25, 2008, 2:13 AM