| @@ 255-265 (lines=11) @@ | ||
| 252 | $permalink = (is_array($this->frontMatter) && isset($this->frontMatter['permalink'])) ? |
|
| 253 | $this->frontMatter['permalink'] : $this->getPathPermalink(); |
|
| 254 | ||
| 255 | if (is_array($permalink)) |
|
| 256 | { |
|
| 257 | $this->permalink = $permalink[0]; |
|
| 258 | array_shift($permalink); |
|
| 259 | $this->redirects = $permalink; |
|
| 260 | } |
|
| 261 | else |
|
| 262 | { |
|
| 263 | $this->permalink = $permalink; |
|
| 264 | $this->redirects = array(); |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||
| 268 | // |
|
| @@ 62-72 (lines=11) @@ | ||
| 59 | ||
| 60 | $permalink = $workspace['permalink']; |
|
| 61 | ||
| 62 | if (is_array($permalink)) |
|
| 63 | { |
|
| 64 | $this->permalink = $permalink[0]; |
|
| 65 | array_shift($permalink); |
|
| 66 | $this->redirects = $permalink; |
|
| 67 | } |
|
| 68 | else |
|
| 69 | { |
|
| 70 | $this->permalink = $permalink; |
|
| 71 | $this->redirects = array(); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|