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:
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
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 .
Thank you for your feedback.
n||i||k||o
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 .
Thank you for your feedback.
n||i||k||o
Code: