Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow disabling the CDN from config.ini

  • Loading branch information...
commit 505e02cd73c93a2dce44a87a37760d8673de6a72 1 parent e72dd62
@abackstrom abackstrom authored
Showing with 8 additions and 1 deletion.
  1. +4 −1 config.ini.sample
  2. +4 −0 routes/routes.php
View
5 config.ini.sample
@@ -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 routes/routes.php
@@ -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' );
Please sign in to comment.
Something went wrong with that request. Please try again.