1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Removed repetition.

This commit is contained in:
jepso 2007-09-23 21:44:45 +00:00
parent c41f1c4b52
commit 80f5d6d64b

View File

@ -131,11 +131,6 @@ class Sensei_Doc_Section implements Countable
if ( ! $short && ! $this->_parent->isRoot()) {
return $this->_parent->getPath($short, $separator) . $separator . $this->getPath(true);
} else {
$patterns = array('/\s/', '/[^a-z0-9-]/');
$replacements = array('-', '');
$path = preg_replace($patterns, $replacements, strtolower($this->_name));
return self::convertNameToPath($this->_name);
}
}