Commit 80f5d6d6 authored by jepso's avatar jepso

Removed repetition.

parent c41f1c4b
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment