Closed (duplicate)
Project:
Advertisement
Version:
6.x-1.x-dev
Component:
ad module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2008 at 10:42 UTC
Updated:
27 Nov 2008 at 14:03 UTC
There is a menu callback for ad_redirect with 3 parameters, but in case the redirect is called with 2 parameters, page not found appears.
I fixed it by adding the following code within hook_menu (line 1264):
$items["ad/redirect/%/%"] = array(
'access arguments' => array('show advertisements'),
'type' => MENU_CALLBACK,
'page callback' => 'ad_redirect',
'page arguments' => (array(2,3)),
);
Comments
Comment #1
jeremy commentedPlease report in the correct place, marking as duplicate.