Changeset 32133
- Timestamp:
- Apr 26, 2020, 7:27:42 PM (4 years ago)
- Location:
- extensions/meta_og
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/meta_og/admin.php
r32112 r32133 47 47 { 48 48 case 'gestion': 49 49 global $pwg_loaded_plugins; 50 50 $metaogpagelistT = array( 51 51 l10n('Select Page'), … … 81 81 'notification', 82 82 ); 83 $MPC = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ContactForm';")); 84 if ($MPC['state'] == 'active'){ 83 if (isset($pwg_loaded_plugins['ContactForm'])){ 85 84 $metaogpagelistT[]=l10n('contact'); 86 85 $metaogpagelist[]='contact'; 87 86 } 88 $MPG = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'GuestBook';")); 89 if ($MPG['state'] == 'active'){ 87 if (isset($pwg_loaded_plugins['GuestBook'])){ 90 88 $metaogpagelistT[]=l10n('GuestBook'); 91 89 $metaogpagelist[]='GuestBook'; 92 90 } 93 $MAP = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'AdditionalPages';")); 94 if ($MAP['state'] == 'active') { 91 if (isset($pwg_loaded_plugins['GuestBook'])){ 95 92 $result = pwg_query('SELECT id,title FROM ' . ADD_PAGES_TABLE . ' ORDER BY id ASC;'); 96 93 while ($row = pwg_db_fetch_assoc($result)) { -
extensions/meta_og/main.inc.php
r32131 r32133 73 73 74 74 function add_metaog(){ 75 global $template, $page, $metaog, $conf, $protocol ;75 global $template, $page, $metaog, $conf, $protocol, $pwg_loaded_plugins; 76 76 if(isset($_SERVER['HTTPS'])){if($_SERVER['HTTPS'] == 'on'){$protocol="https://";}} 77 77 else{$protocol="http://";} … … 173 173 } 174 174 175 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 176 if ( $PAED['state'] == 'active')175 176 if (isset($pwg_loaded_plugins['ExtendedDescription'])){ 177 177 add_event_handler('AP_render_content', 'get_user_language_desc'); 178 178 } 179 179 // og:url 180 180 if (!empty($metaogurl)) {
Note: See TracChangeset
for help on using the changeset viewer.