@@ -69,8 +69,10 @@ |
||
69 | 69 | $this->guid = $guid ?: $this->fileUrl; |
70 | 70 | $this->link = $link ?: $this->fileUrl; |
71 | 71 | |
72 | - if (empty(self::$template)) // avoid disk IO for every item instance |
|
72 | + if (empty(self::$template)) { |
|
73 | + // avoid disk IO for every item instance |
|
73 | 74 | self::$template = file_get_contents(__DIR__ . '/templates/item.xml'); |
75 | + } |
|
74 | 76 | } |
75 | 77 | |
76 | 78 | public function getXml(): string { |