Ignore:
Timestamp:
Jan 20, 2013, 9:41:55 PM (11 years ago)
Author:
mistic100
Message:

clean code

File:
1 edited

Legend:

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

    r20293 r20301  
    11<?php
    22/*
    3 Plugin Name: oauth
     3Plugin Name: OAuth
    44Version: auto
    5 Description: This is not a plugin. It's a oauth for future plugins.
     5Description: Provides various ways to sign in your gallery (Twitter, Facebook, Google, etc.)
    66Plugin URI: auto
    77Author: Mistic
     
    4141  add_event_handler('get_admin_plugin_menu_links', 'oauth_admin_plugin_menu_links');
    4242 
    43   include_once(OAUTH_PATH . 'include/admin_events.inc.php');
     43  function oauth_admin_plugin_menu_links($menu)
     44  {
     45    array_push($menu, array(
     46      'NAME' => l10n('OAuth'),
     47      'URL' => OAUTH_ADMIN,
     48    ));
     49    return $menu;
     50  }
    4451}
    4552else if (!empty($hybridauth_conf) and function_exists('curl_init'))
     
    8794      if (defined('IN_ADMIN'))
    8895      {
    89         $_SESSION['page_infos'][] = 'oAuth updated to version '. OAUTH_VERSION;
     96        $_SESSION['page_infos'][] = 'OAuth updated to version '. OAUTH_VERSION;
    9097      }
    9198    }
     
    101108    if (empty($hybridauth_conf))
    102109    {
    103       array_push($page['errors'], l10n('oAuth: You need to configure the credentials'));
     110      array_push($page['errors'], l10n('OAuth: You need to configure the credentials'));
    104111    }
    105112    if (!function_exists('curl_init'))
    106113    {
    107       array_push($page['errors'], l10n('oAuth: cURL extension is needed'));
     114      array_push($page['errors'], l10n('OAuth: cURL extension is needed'));
    108115    }
    109116  }
Note: See TracChangeset for help on using the changeset viewer.