Ignore:
Timestamp:
Jan 1, 2011, 11:16:52 AM (13 years ago)
Author:
rub
Message:

Facebook_Integration plugin is inactivated when FacebookPlug is activating
Get representative image for category or random picture (and not only first picture)
Allow Facebook to access private index page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/maintain.inc.php

    r8241 r8420  
    2626function plugin_install()
    2727{
     28  // Update configuration
    2829  $query = '
    2930replace into '.CONFIG_TABLE.'
     
    4041}
    4142
     43function plugin_activate()
     44{
     45  // Inactivate plugins
     46  $plugins = array('Facebook_Integration');
     47    $query = '
     48update '.PLUGINS_TABLE.'
     49set STATE=\'inactive\'
     50where ID in (\'' . implode('\',\'', $plugins) . '\')
     51;';
     52    pwg_query($query);
     53
     54}
     55
    4256function plugin_uninstall()
    4357{
     58  // Delete configuration
    4459  $query = '
    4560delete from '.CONFIG_TABLE.'
Note: See TracChangeset for help on using the changeset viewer.