Changeset 1013 in ExiteCMS for branches/PLi-Fusion/forum/viewforum.php


Ignore:
Timestamp:
10/24/07 21:08:44 (5 years ago)
Author:
hverton
Message:

Merged trunk revision 1006:1012 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/forum/viewforum.php

    r834 r1013  
    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.