From: garvinhicking Date: Mon, 14 Nov 2005 09:04:18 +0000 (+0000) Subject: don't allow empty permalinks, should help with some i18n trouble X-Git-Tag: 1.0~292 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ed3b7f7bcedbcb0761c15a866fd6f0b510c36259;p=s9y.git don't allow empty permalinks, should help with some i18n trouble --- diff --git a/include/functions_permalinks.inc.php b/include/functions_permalinks.inc.php index 328789d..7d2fb68 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -117,6 +117,14 @@ function serendipity_makeFilename($str, $stripDots = false) { // Remove excess separators $str = trim($str, $to[0]); + + if (empty($str)) { + if (isset($GLOBALS['i18n_unknown'])) { + $str = $GLOBALS['i18n_unknown']; + } else { + $str = 'unknown'; + } + } return $str; }