From 0861d79cf128525289b2822920ad543d2381f5da Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 14 Nov 2005 09:04:18 +0000 Subject: [PATCH] don't allow empty permalinks, should help with some i18n trouble --- include/functions_permalinks.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5