Changeset 38903

Show
Ignore:
Timestamp:
04/07/08 06:21:05 (3 months ago)
Author:
ketsugi
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • acronyms/trunk/acronyms.php

    r38900 r38903  
    174174            add_option( 'acronym_content', 1 ); 
    175175            add_option( 'acronym_comments', 1 ); 
    176             add_option( 'default_num_of_acronyms', 15 ); 
    177              
    178176      } 
    179177       
     
    251249                        $s = '&s=' . urlencode( $_GET['search'] ); 
    252250                        $p = isset( $_GET['p'] ) ? '&p=' . $_GET['p'] : ''; 
    253                         $n = isset( $_GET['n'] ) && get_option( 'default_num_of_acronyms' ) != $_GET['n'] ? '&n=' . $_GET['n'] : ''; 
     251                        $n = isset( $_GET['n'] ) && 15 != $_GET['n'] ? '&n=' . $_GET['n'] : ''; 
    254252                        $o = isset( $_GET['o'] ) ? '&o=' . $_GET['o'] : ''; 
    255253                        wp_redirect( "$parent_file$s$p$n$o" ); 
     
    289287                  else if ( 'All' == $_GET['n'] ) $n = 0; 
    290288            } 
    291             else $n = get_option( 'default_num_of_acronyms' )
     289            else $n = 15
    292290            if ( 0 == $n ) $t = 1; 
    293291            else $t = ceil( Acronyms::count_acronyms( $s ) / $n ); // Total number of pages, rounded up to nearest integer