@@ -64,8 +64,10 @@ |
||
| 64 | 64 | $this->mime = $mime; |
| 65 | 65 | $this->guid = $guid ?: $this->fileUrl; |
| 66 | 66 | |
| 67 | - if (empty(self::$template)) // avoid disk IO for every item instance |
|
| 67 | + if (empty(self::$template)) { |
|
| 68 | + // avoid disk IO for every item instance |
|
| 68 | 69 | self::$template = file_get_contents(__DIR__ . '/templates/item.xml'); |
| 70 | + } |
|
| 69 | 71 | } |
| 70 | 72 | |
| 71 | 73 | public function getXml(): string { |