Changeset 5455

Show
Ignore:
Timestamp:
03/03/06 23:50:42 (2 years ago)
Author:
alexkingorg
Message:

proper 1.8 files, oops

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wordpress-mobile-edition/trunk/wp-mobile.plugin.php

    r5448 r5455  
    7777} 
    7878 
    79  
    8079if (ak_mobile_redirect() && ak_check_mobile()) { 
    8180      $URL = get_settings('siteurl').'/wp-mobile.php?'; 
    82       if (isset($p)) { 
    83             $URL .= 'p='.$p.'&'; 
    84       } 
    85       if (isset($m)) { 
    86             $URL .= 'm='.$m.'&'; 
    87       } 
    88       if (isset($cat)) { 
    89             $URL .= 'cat='.$cat.'&'; 
     81      $vars = array( 
     82            'year' 
     83            ,'monthnum' 
     84            ,'day' 
     85            ,'name' 
     86            ,'category_name' 
     87      ); 
     88      foreach ($vars as $var) { 
     89            if (isset($_GET[$var])) { 
     90                  $URL .= $var.'='.$_GET[$var].'&'; 
     91            } 
    9092      } 
    9193      header("Location: $URL");