Changeset 32430


Ignore:
Timestamp:
Jan 24, 2021, 5:52:32 PM (3 years ago)
Author:
ddtddt
Message:

[most_downloaded] bug $pwg_loaded_plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/most_downloaded/main.inc.php

    r32418 r32430  
    3838}
    3939
    40 global $pwg_loaded_plugins;
     40$dcac = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'download_counter';"));
    4141
    42 if (!isset($pwg_loaded_plugins['download_counter'])){
     42if($dcac['state'] != 'active'){
    4343  if (script_basename() == 'admin'){
    4444   include_once(dirname(__FILE__).'/initadmin.php');
Note: See TracChangeset for help on using the changeset viewer.