Permalink
Browse files

Allow disabling the CDN from config.ini

  • Loading branch information...
1 parent e72dd62 commit 505e02cd73c93a2dce44a87a37760d8673de6a72 @abackstrom abackstrom committed May 7, 2012
Showing with 8 additions and 1 deletion.
  1. +4 −1 config.ini.sample
  2. +4 −0 routes/routes.php
View
@@ -8,7 +8,10 @@ webapp_url = "https://www.plymouth.edu/webapp"
tmp_dir = "/web/temp"
uploads_dir = "/web/uploads"
-[psuperson]
+;[cdn]
+;enabled = 1
+
+;[psuperson]
;overrides = "{\"publicname\":\"backendname\",\"othername\":\"unknownname\"}"
[calllog]
View
@@ -4,6 +4,10 @@
respond( function( $request, $response, $app ) {
$app->config = PSU\Config\Factory::get_config();
+
+ if( false == $app->config->get( 'cdn', 'enabled', true ) ) {
+ define( 'PSU_CDN', false );
+ }
});
with( '/festivals', __DIR__ . '/festivals.php' );

0 comments on commit 505e02c

Please sign in to comment.