Max F před 4 roky
rodič
revize
5edba62bd2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;