예제 #1
0
파일: Site.php 프로젝트: anpone/sitecake
 protected function cleanupPublic()
 {
     $pagePaths = $this->listScPagesPaths();
     foreach ($pagePaths as $pagePath) {
         $page = new Page($this->fs->read($pagePath));
         $page->removePageId();
         $page->cleanupContainerNames();
         $page->removeMetadata();
         $page->unprefixResourceUrls($this->draftBaseUrl());
         $this->fs->update($pagePath, (string) $page);
     }
 }