Permalink
Browse files

Fixed root URL issue on Windows.

  • Loading branch information...
cubiclesoft committed Sep 29, 2018
1 parent 4a8143f commit 1e0450521b39a0c438ccf7fe2f7205a618c77334
Showing with 3 additions and 3 deletions.
  1. +3 −3 support/page_basics.php
@@ -211,7 +211,7 @@ function BB_PropertyForm($options)
else
{
$rooturl = BB_GetRequestURLBase();
if (substr($rooturl, -1) != "/") $rooturl = dirname($rooturl);
if (substr($rooturl, -1) != "/") $rooturl = str_replace("\\", "/", dirname($rooturl));
if (substr($rooturl, -1) == "/") $rooturl = substr($rooturl, 0, -1);
}
@@ -503,7 +503,7 @@ function BB_GeneratePage($title, $menuopts, $contentopts)
else
{
$rooturl = BB_GetRequestURLBase();
if (substr($rooturl, -1) != "/") $rooturl = dirname($rooturl);
if (substr($rooturl, -1) != "/") $rooturl = str_replace("\\", "/", dirname($rooturl));
if (substr($rooturl, -1) == "/") $rooturl = substr($rooturl, 0, -1);
}
@@ -569,7 +569,7 @@ function BB_GenerateBulkEditPage($title, $contentopts)
else
{
$rooturl = BB_GetRequestURLBase();
if (substr($rooturl, -1) != "/") $rooturl = dirname($rooturl);
if (substr($rooturl, -1) != "/") $rooturl = str_replace("\\", "/", dirname($rooturl));
if (substr($rooturl, -1) == "/") $rooturl = substr($rooturl, 0, -1);
}

0 comments on commit 1e04505

Please sign in to comment.