Changeset 1381870
- Timestamp:
- 03/30/2016 10:27:10 AM (10 years ago)
- File:
-
- 1 edited
-
simple-string-manager/trunk/inc/sys.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-string-manager/trunk/inc/sys.php
r1278476 r1381870 53 53 54 54 //$abspatch = substr(__FILE__,0,strpos(__FILE__,'plugins')); 55 $patch = ABSPATH .'wp-content \plugins\\'.$cf['plugin'].'\\';55 $patch = ABSPATH .'wp-content/plugins/'.$cf['plugin'].'/'; 56 56 57 if(is_dir($patch.$cf['dir'].' \\')){58 $patch=$patch.$cf['dir'].' \\';57 if(is_dir($patch.$cf['dir'].'/')){ 58 $patch=$patch.$cf['dir'].'/'; 59 59 }else{ return false; } 60 60 61 61 if( $cf['return']=='dir' )return $patch; 62 62 63 63 if(empty($cf['file']))return false; 64 64 if(is_file("{$patch}{$cf['file']}.php"))return "{$patch}{$cf['file']}.php"; 65 65 66 66 return false; 67 67 }}
Note: See TracChangeset
for help on using the changeset viewer.