Changeset 1012 in ExiteCMS for trunk/forum/index.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/index.php

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