Changeset 1013 in ExiteCMS for branches/PLi-Fusion/forum/index.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/index.php

    r834 r1013  
    2525include PATH_LOCALE.LOCALESET."forum/main.php"; 
    2626 
    27 // load the advertisement include module 
    28 require_once PATH_INCLUDES."advertisement.php"; 
    29 $variables['advert'] = get_advert(array(1,2)); 
     27// load the advertisement include module and get an ad for this forum page 
     28if (file_exists(PATH_MODULES."advertising/get_ad.php")) { 
     29    // load the ad include module 
     30    require_once PATH_MODULES."advertising/get_ad.php"; 
     31    $variables['advert'] = get_ad(array(1,2)); 
     32} else { 
     33    $variables['advert'] = ""; 
     34} 
    3035 
    3136// when is a folder hot? 
Note: See TracChangeset for help on using the changeset viewer.