Skip to content

Commit

Permalink
Merge pull request #1279 from cnb/master
Browse files Browse the repository at this point in the history
fix generate_url bugs
  • Loading branch information
tablatronix committed May 21, 2018
2 parents 8e010c9 + 11b4e27 commit 3e4ea58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions admin/inc/basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -1119,10 +1119,11 @@ function generate_url($slug, $absolute = false, $pathdata = null){
// not index
if($slug != getDef('GSINDEXSLUG')){
if ($PRETTYURLS == '1'){
$url .= generate_permalink($slug,null,$pathdata);
}
else if (!empty($PERMALINK)){
$url .= generate_permalink($slug,$PERMALINK,$pathadta);
if (!empty($PERMALINK)){
$url .= generate_permalink($slug,$PERMALINK,$pathdata);
} else {
$url .= generate_permalink($slug,null,$pathdata);
}
}
else $url .= 'index.php?id='.$slug;
}
Expand Down

0 comments on commit 3e4ea58

Please sign in to comment.