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: 0.9.1~29 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0861d79cf128525289b2822920ad543d2381f5da;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 d408ee4..5ee05a1 100644 --- a/include/functions_permalinks.inc.php +++ b/include/functions_permalinks.inc.php @@ -113,6 +113,14 @@ function serendipity_makeFilename($str) { // 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; }