MINOR fix typo

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98980 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
trix 2010-02-15 03:52:41 +00:00 committed by Sam Minnee
parent 24dec25548
commit a4cf4672b4
3 changed files with 17 additions and 7 deletions

View File

@ -10,10 +10,11 @@
Deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/static-main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

View File

@ -4,7 +4,7 @@ global $project;
$project = 'mysite';
global $database;
$database = "";
$database = "SS_mysite_24_test";
require_once("conf/ConfigureFromEnv.php");
@ -16,3 +16,5 @@ SSViewer::set_theme('blackcandy');
// enable nested URLs for this site (e.g. page/sub-page/)
SiteTree::enable_nested_urls();
Object::add_extension("SiteTree", "FilesystemPublisher('cache/', 'php')");

View File

@ -8,6 +8,13 @@ class Page extends SiteTree {
public static $has_one = array(
);
function allPagesToCache() {
$pages = DataObject::get('Page');
$urls = array();
foreach($pages as $page) $urls[] = $page->AbsoluteLink();
return $urls;
}
}
class Page_Controller extends ContentController {