Changeset 32308 for extensions/meta/initadmin.php
- Timestamp:
- Nov 7, 2020, 5:06:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/meta/initadmin.php
r31492 r32308 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | meta plugin for Piwigo 3 // | meta plugin for Piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-20 16ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2008-2020 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 65 65 function metaPadminA() { 66 66 if (isset($_GET['image_id'])){ 67 global $template, $prefixeTable; 68 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 69 if($PAED['state'] == 'active'){ 67 global $template, $prefixeTable, $pwg_loaded_plugins; 68 if (isset($pwg_loaded_plugins['ExtendedDescription'])){ 70 69 $template->assign('useED',1); 71 70 }else{ … … 125 124 function metaAadminA(){ 126 125 if (isset($_GET['cat_id'])) { 127 global $template, $prefixeTable; 128 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 129 if($PAED['state'] == 'active'){ 126 global $template, $prefixeTable, $pwg_loaded_plugins; 127 if (isset($pwg_loaded_plugins['ExtendedDescription'])){ 130 128 $template->assign('useED',1); 131 132 133 129 }else{ 130 $template->assign('useED',0); 131 } 134 132 $query = 'SELECT id,metaKeycat,metadescat FROM ' . meta_cat_TABLE . ' WHERE id = ' . $_GET['cat_id'] . ';'; 135 133 $result = pwg_query($query);
Note: See TracChangeset
for help on using the changeset viewer.