@@ 1522-1531 (lines=10) @@ | ||
1519 | * |
|
1520 | * @return string |
|
1521 | */ |
|
1522 | function getArchiveRel( $suffix = false ) { |
|
1523 | $path = 'archive/' . $this->getHashPath(); |
|
1524 | if ( $suffix === false ) { |
|
1525 | $path = substr( $path, 0, -1 ); |
|
1526 | } else { |
|
1527 | $path .= $suffix; |
|
1528 | } |
|
1529 | ||
1530 | return $path; |
|
1531 | } |
|
1532 | ||
1533 | /** |
|
1534 | * Get the path, relative to the thumbnail zone root, of the |
|
@@ 1567-1576 (lines=10) @@ | ||
1564 | * @param bool|string $suffix If not false, the name of a thumbnail file |
|
1565 | * @return string |
|
1566 | */ |
|
1567 | function getArchiveThumbRel( $archiveName, $suffix = false ) { |
|
1568 | $path = 'archive/' . $this->getHashPath() . $archiveName . "/"; |
|
1569 | if ( $suffix === false ) { |
|
1570 | $path = substr( $path, 0, -1 ); |
|
1571 | } else { |
|
1572 | $path .= $suffix; |
|
1573 | } |
|
1574 | ||
1575 | return $path; |
|
1576 | } |
|
1577 | ||
1578 | /** |
|
1579 | * Get the path of the archived file. |