Plugin Directory

Changeset 451068


Ignore:
Timestamp:
10/14/2011 01:35:49 PM (14 years ago)
Author:
freerobby
Message:

Moved function from sexybookmark.php to sb settings page and sb global settings page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sexybookmarks/trunk/includes/helper-functions.php

    r435467 r451068  
    307307}
    308308
     309//Change the directory path to webpath
     310function shr_dir_to_path($dir){
     311    if(!$dir){
     312        return false;
     313    }
     314    $path = get_option("siteurl");
     315    if(substr($path, -1) != '/'){
     316        $path .= '/';
     317    }
     318    $path .= substr($dir , strlen(ABSPATH));
     319    return $path;
     320}
     321
    309322/**
    310323 * @desc dump the sexybookmark settings from the database
Note: See TracChangeset for help on using the changeset viewer.