Changeset 20301 for extensions/oAuth/admin/config.php
- Timestamp:
- Jan 20, 2013, 9:41:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/admin/config.php
r20293 r20301 30 30 } 31 31 32 if ( $id == 'Wordpress' and $data['enabled'] and !@$providers['OpenID']['enabled'])32 if ( ($id=='Wordpress' or $id=='Flickr') and $data['enabled'] and !@$providers['OpenID']['enabled'] ) 33 33 { 34 array_push($page['errors'], sprintf(l10n('OpenID must be enabled in order to use %s authenti fication'), $id));34 array_push($page['errors'], sprintf(l10n('OpenID must be enabled in order to use %s authentication'), $id)); 35 35 $error = true; 36 36 } … … 55 55 $content.= ";\n?>"; 56 56 file_put_contents(OAUTH_CONFIG, $content); 57 58 // plugin config 59 $conf['oauth'] = array( 60 'display_register' => isset($_POST['display_register']), 61 'display_menubar' => isset($_POST['display_menubar']), 62 ); 63 64 conf_update_param('oauth', serialize($conf['oauth'])); 65 array_push($page['infos'], l10n('Information data registered in database')); 57 66 } 58 59 // plugin config60 $conf['oauth'] = array(61 'display_register' => isset($_POST['display_register']),62 'display_menubar' => isset($_POST['display_menubar']),63 );64 65 conf_update_param('oauth', serialize($conf['oauth']));66 array_push($page['infos'], l10n('Information data registered in database'));67 67 } 68 68
Note: See TracChangeset
for help on using the changeset viewer.