瀏覽代碼

dev 2021-04

Max F 4 年之前
父節點
當前提交
5edba62bd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/helpers/helpers_default.php

+ 1 - 1
src/helpers/helpers_default.php

@@ -142,7 +142,7 @@ if (! function_exists('slugify')) {
 		}
 
 		if (! empty($max_length) && strlen($text) > $max_length) {
-			$text = substr(0, $max_length);
+			$text = substr($text, 0, $max_length);
 		}
 
 		return $text;