Changeset 39345

Show
Ignore:
Timestamp:
04/08/08 22:31:16 (3 months ago)
Author:
alexkingorg
Message:

fix the exclude var bug

Files:

Legend:

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

    r37002 r39345  
    2121Author: Alex King 
    2222Author URI: http://alexking.org 
    23 Version: 2.1 
     23Version: 2.1a 
    2424*/  
    2525 
     
    7070            ,'EudoraWeb' 
    7171            ,'hiptop' 
     72            ,'IEMobile' 
    7273            ,'KYOCERA/WX310K' 
    7374            ,'LG/U990' 
     
    114115            ,'wp-login.php' 
    115116      ); 
    116       foreach ($pages_to_exclude as $exclude) { 
    117             if (strstr(strtolower($_SERVER['REQUEST_URI']), $exclude)) { 
     117      foreach ($pages_to_exclude as $exclude_page) { 
     118            if (strstr(strtolower($_SERVER['REQUEST_URI']), $exclude_page)) { 
    118119                  $exclude = true; 
    119120            } 
     
    133134function akm_installed() { 
    134135      return is_dir(ABSPATH.'/wp-content/themes/wp-mobile'); 
    135 } 
    136  
    137 function akm_misinstalled($content) { 
    138       return $content.'<p>WordPress Mobile Edition has been incorrectly installed. Please follow the steps in the README to install it correctly or disable the plugin.</p>'; 
    139136} 
    140137