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
  • modules/common/ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php

    r996 r1012  
    1717} else { 
    1818 
    19     // load the locale for this module 
    20     require_once PATH_LOCALE.LOCALESET."admin/adverts.php"; 
     19    // check if the advertising module is installed 
     20    if (file_exists(PATH_MODULES."advertising/get_ad.php")) { 
    2121 
    22     // check if the advertising module is installed 
    23     if (file_exists(PATH_INCLUDES."advertisement.php")) { 
    24          
    25         // load the advertisement include module 
    26         require_once PATH_INCLUDES."advertisement.php"; 
     22        // load the locale for this panel 
     23        if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 
     24                $locale_file = PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 
     25        } else { 
     26                $locale_file = PATH_MODULES."advertising/locale/English.php"; 
     27        } 
     28        include $locale_file; 
     29 
     30        // load the ad include module 
     31        require_once PATH_MODULES."advertising/get_ad.php"; 
    2732     
    2833        // array's to store the variables for this panel 
    29         $ad = get_advert(0,0,0); 
     34        $ad = get_ad(0,0,0); 
    3035 
    3136    } else { 
Note: See TracChangeset for help on using the changeset viewer.