mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
MINOR Reverted r98980
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98997 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a4cf4672b4
commit
ba357293b8
13
.htaccess
13
.htaccess
@ -10,11 +10,10 @@
|
|||||||
Deny from all
|
Deny from all
|
||||||
</Files>
|
</Files>
|
||||||
|
|
||||||
RewriteEngine On
|
<IfModule mod_rewrite.c>
|
||||||
RewriteBase /
|
RewriteEngine On
|
||||||
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
</IfModule>
|
||||||
RewriteRule .* sapphire/static-main.php?url=%1&%{QUERY_STRING} [L]
|
|
||||||
### SILVERSTRIPE END ###
|
### SILVERSTRIPE END ###
|
||||||
|
@ -4,7 +4,7 @@ global $project;
|
|||||||
$project = 'mysite';
|
$project = 'mysite';
|
||||||
|
|
||||||
global $database;
|
global $database;
|
||||||
$database = "SS_mysite_24_test";
|
$database = "";
|
||||||
|
|
||||||
require_once("conf/ConfigureFromEnv.php");
|
require_once("conf/ConfigureFromEnv.php");
|
||||||
|
|
||||||
@ -16,5 +16,3 @@ SSViewer::set_theme('blackcandy');
|
|||||||
|
|
||||||
// enable nested URLs for this site (e.g. page/sub-page/)
|
// enable nested URLs for this site (e.g. page/sub-page/)
|
||||||
SiteTree::enable_nested_urls();
|
SiteTree::enable_nested_urls();
|
||||||
|
|
||||||
Object::add_extension("SiteTree", "FilesystemPublisher('cache/', 'php')");
|
|
@ -8,13 +8,6 @@ class Page extends SiteTree {
|
|||||||
public static $has_one = array(
|
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 {
|
class Page_Controller extends ContentController {
|
||||||
|
Loading…
Reference in New Issue
Block a user