Changeset 21303


Ignore:
Timestamp:
Mar 7, 2013, 12:40:18 AM (7 years ago)
Author:
mistic100
Message:

display errors as warnings in order to no block parameters save

Location:
extensions/oAuth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin.php

    r20324 r21303  
    66if (!$conf['allow_user_registration'])
    77{
    8   array_push($page['errors'], l10n('Users are not allowed to register on your gallery. OAuth will not work correctly.'));
     8  array_push($page['warnings'], l10n('Users are not allowed to register on your gallery. OAuth will not work correctly.'));
    99}
    1010
  • extensions/oAuth/main.inc.php

    r20369 r21303  
    106106  if (defined('IN_ADMIN'))
    107107  {
    108     if ( empty($hybridauth_conf) and @$_GET['page'] != 'plugin-'.OAUTH_ID )
     108    if ( empty($hybridauth_conf) and strpos(@$_GET['page'],'plugin-'.OAUTH_ID)===false )
    109109    {
    110       array_push($page['errors'], l10n('OAuth: You need to configure the credentials'));
     110      array_push($page['warnings'], l10n('OAuth: You need to configure the credentials'));
    111111    }
    112112    if (!function_exists('curl_init'))
    113113    {
    114       array_push($page['errors'], l10n('OAuth: PHP Curl extension is needed'));
     114      array_push($page['warnings'], l10n('OAuth: PHP Curl extension is needed'));
    115115    }
    116116  }
Note: See TracChangeset for help on using the changeset viewer.