arg function not using URL alias
- by cinqoTimo
I am running Drupal 6, and I'm using PHP for block visibility.
<?php
$city = arg(0);
$page = arg(1);
if ($city == 'tampa' && $page != 'art'){
return 'TRUE';
}
else{
return FALSE;
}
?>
I was having trouble with this block of code, so I decided to insert:
<?php print arg(0).arg(1); ?>
in my page.tpl.php. What I found was…