Skip to content

Commit

Permalink
API: Remove static main and dev/buildcache
Browse files Browse the repository at this point in the history
Files moved to a separate module (silverstripe-static).
  • Loading branch information
wilr committed Sep 21, 2012
1 parent 9c2be0f commit e72114d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 394 deletions.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<FilesMatch "\.(php|php3|php4|php5|phtml|inc)$">
Deny from all
</FilesMatch>
<FilesMatch "(main|static-main|rpc|tiny_mce_gzip)\.php$">
<FilesMatch "(main|rpc|tiny_mce_gzip)\.php$">
Allow from all
</FilesMatch>
<FilesMatch "silverstripe_version$">
Expand Down
1 change: 0 additions & 1 deletion dev/DevelopmentAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function init() {
function index() {
$actions = array(
"build" => "Build/rebuild this environment. Call this whenever you have updated your project sources",
"buildcache" => "Rebuild the static cache, if you're using StaticPublisher",
"tests" => "See a list of unit tests to run",
"tests/all" => "Run all tests",
"tests/startsession" => "Start a test session in your browser (gives you a temporary database with default content)",
Expand Down
283 changes: 0 additions & 283 deletions docs/en/reference/staticpublisher.md

This file was deleted.

2 changes: 2 additions & 0 deletions main.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
// Connect to database
require_once('model/DB.php');

global $databaseConfig;

// Redirect to the installer if no database is selected
if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {
if(!file_exists(BASE_PATH . '/install.php')) {
Expand Down
Loading

0 comments on commit e72114d

Please sign in to comment.