Changeset 1012 in ExiteCMS for trunk/forum/viewforum.php


Ignore:
Timestamp:
10/24/07 21:03:42 (5 years ago)
Author:
root
Message:

Moved the get_ad() module out of the trunk and into the advertising module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/viewforum.php

    r834 r1012  
    3535require_once PATH_INCLUDES."forum_functions_include.php"; 
    3636 
    37 // load the advertisement include module 
    38 require_once PATH_INCLUDES."advertisement.php"; 
    39 $variables['advert'] = get_advert(array(1,2)); 
     37// load the advertisement include module and get an ad for this forum page 
     38if (file_exists(PATH_MODULES."advertising/get_ad.php")) { 
     39    require_once PATH_MODULES."advertising/get_ad.php"; 
     40    $variables['advert'] = get_ad(array(1,2)); 
     41} else { 
     42    $variables['advert'] = ""; 
     43} 
    4044 
    4145// define how many threads per page we want 
Note: See TracChangeset for help on using the changeset viewer.