Ignore:
Timestamp:
Dec 24, 2010, 7:23:54 PM (13 years ago)
Author:
rub
Message:

Can change default facebook application id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/include/header.inc.php

    r8275 r8298  
    2626function fbp_header($content, &$smarty)
    2727{
    28   global $conf;
    29 
    3028  // replace tag html
    3129  $search = '<html ';
     
    4240function fbp_init()
    4341{
    44   global $template, $user, $page, $conf, $picture;
     42  global $template, $conf, $user;
    4543
    4644  // set prefilter
    4745  $template->set_prefilter('header', 'fbp_header');
    4846
    49   $template->assign('FACEBOOK_APP_ID', FACEBOOK_APP_ID);
     47  $template->assign('FACEBOOK_APP_ID', (is_numeric($conf['fbp']['facebook_app_id']) ? $conf['fbp']['facebook_app_id'] : FACEBOOK_APP_ID));
    5048  // define language
    5149  $template->assign('LANGUAGE', $user['language']);
Note: See TracChangeset for help on using the changeset viewer.