Plugin Directory

Changeset 695082


Ignore:
Timestamp:
04/10/2013 08:23:35 AM (13 years ago)
Author:
macbrink
Message:

use real path for home_dir() http://www.php.net/manual/en/reserved.variables.server.php#102734

Location:
eazyest-gallery
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • eazyest-gallery/branches/0.1/eazyest-gallery.php

    r695055 r695082  
    99 * Author: Brimosoft
    1010 * Author URI: http://brimosoft.nl
    11  * Version: 0.1.1-alpha-318
     11 * Version: 0.1.1-alpha-321
    1212 * Text Domain: eazyest-gallery
    1313 * Domain Path: /languages/
     
    483483    function home_dir() {       
    484484        if ( isset( $_SERVER['DOCUMENT_ROOT'] ) )
    485             return trailingslashit( str_replace( array( '/', '\\'), '/', $_SERVER['DOCUMENT_ROOT'] ) );
     485            return trailingslashit( str_replace( array( '/', '\\'), '/', realpath( $_SERVER['DOCUMENT_ROOT'] ) ) );
    486486       
    487487        // document root is not set, try to find root from settings
  • eazyest-gallery/trunk/eazyest-gallery.php

    r695076 r695082  
    99 * Author: Brimosoft
    1010 * Author URI: http://brimosoft.nl
    11  * Version: 0.2.0-alpha-320
     11 * Version: 0.2.0-alpha-321
    1212 * Text Domain: eazyest-gallery
    1313 * Domain Path: /languages/
    1414 * License: GNU General Public License, version 3
    1515 *
    16  * @version 0.2.0 (r320
     16 * @version 0.2.0 (r321
    1717 * @package Eazyest Gallery
    1818 * @subpackage Main
     
    5252 *
    5353 * @since lazyest-gallery 0.16.0
    54  * @version 0.2.0 (r318)
     54 * @version 0.2.0 (r321)
    5555 * @access public
    5656 */
     
    483483    function home_dir() {       
    484484        if ( isset( $_SERVER['DOCUMENT_ROOT'] ) )
    485             return trailingslashit( str_replace( array( '/', '\\'), '/', $_SERVER['DOCUMENT_ROOT'] ) );
     485            return trailingslashit( str_replace( array( '/', '\\'), '/', realpath( $_SERVER['DOCUMENT_ROOT'] ) ) );
    486486       
    487487        // document root is not set, try to find root from settings
Note: See TracChangeset for help on using the changeset viewer.