Plugin Directory

Changeset 1381870


Ignore:
Timestamp:
03/30/2016 10:27:10 AM (10 years ago)
Author:
Gioowp
Message:

bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-string-manager/trunk/inc/sys.php

    r1278476 r1381870  
    5353
    5454    //$abspatch = substr(__FILE__,0,strpos(__FILE__,'plugins'));
    55     $patch = ABSPATH .'wp-content\plugins\\'.$cf['plugin'].'\\';
     55    $patch = ABSPATH .'wp-content/plugins/'.$cf['plugin'].'/';
    5656
    57     if(is_dir($patch.$cf['dir'].'\\')){
    58         $patch=$patch.$cf['dir'].'\\';
     57    if(is_dir($patch.$cf['dir'].'/')){
     58        $patch=$patch.$cf['dir'].'/';
    5959    }else{ return false; }
    60    
     60
    6161    if( $cf['return']=='dir' )return $patch;
    6262
    6363    if(empty($cf['file']))return false;
    6464    if(is_file("{$patch}{$cf['file']}.php"))return "{$patch}{$cf['file']}.php";
    65    
     65
    6666    return false;
    6767}}
Note: See TracChangeset for help on using the changeset viewer.