/** * Ensures the page has been loaded from disk. */ protected function ensureConfigLoaded() { if ($this->config == null) { // Set the configuration to an empty array so that the PageLoader // can call 'set()' on it and assign the actual configuration. $this->config = new PageConfiguration($this, array(), false); $loader = new PageLoader($this); $this->contents = $loader->load(); $this->wasCached = $loader->wasCached(); $this->didFormatContents = false; } }