Changeset 369144
- Timestamp:
- 04/05/2011 04:09:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
top-contributors/tags/1.4.1/top-contributors.php
r369142 r369144 49 49 ); 50 50 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 53 if(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 } 59 if(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 } 65 if(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 } 54 71 55 72 require 'functions.inc.php';
Note: See TracChangeset
for help on using the changeset viewer.