Plugin Directory

Changeset 369144


Ignore:
Timestamp:
04/05/2011 04:09:05 PM (14 years ago)
Author:
blueinstyle
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • top-contributors/tags/1.4.1/top-contributors.php

    r369142 r369144  
    4949                    );
    5050
    51 $jmetcop['comment'] = (get_option('jmetc_commenters')) ? get_option('jmetc_commenters') : add_option('jmetc_commenters',$tcDefault['options']);
    52 $jmetcop['author'] = (get_option('jmetc_authors')) ? get_option('jmetc_authors') : add_option('jmetc_authors',$tcDefault['options']);
    53 $jmetcop['icon'] = (get_option('jmetc_icon')) ? get_option('jmetc_icon') : add_option('jmetc_icon',$tcDefault['icon']);
     51/* check and set options for plugin */
     52
     53if(get_option('jmetc_commenters')) {
     54    $jmetcop['comment'] = get_option('jmetc_commenters');
     55} else {
     56    add_option('jmetc_commenters',$tcDefault['options']);
     57    $jmetcop['comment'] = get_option('jmetc_commenters');
     58}
     59if(get_option('jmetc_authors')) {
     60    $jmetcop['author'] = get_option('jmetc_authors');
     61} else {
     62    add_option('jmetc_authors',$tcDefault['options']);
     63    $jmetcop['author'] = get_option('jmetc_authors');
     64}
     65if(get_option('jmetc_icon')) {
     66    $jmetcop['icon'] = get_option('jmetc_icon');
     67} else {
     68    add_option('jmetc_icon',$tcDefault['icon']);
     69    $jmetcop['icon'] = get_option('jmetc_icon');
     70}
    5471
    5572require 'functions.inc.php';
Note: See TracChangeset for help on using the changeset viewer.