Permalink
Browse files

Fixing Travis and NGINX no CRUD notice

  • Loading branch information...
TimLethbridge committed Sep 28, 2018
1 parent 93f5f81 commit 7db60ad82067abbcd5a19961827e84206096307a
Showing with 4 additions and 1 deletion.
  1. +0 −1 .travis.yml
  2. +4 −0 cruise.umple/src/Generator_CodeUigu2.ump
View
@@ -18,7 +18,6 @@ addons:
packages:
- php5-common
- php5-cli
- php5-mod-session
before_install:
- ./travis/deps.sh # run linux or osx depending on environment
@@ -74,6 +74,10 @@ class Uigu2Generator
*/
private void generateIndexFile() throws IOException{
String indexFile = "<?php" + NL + NL
+ "if(!function_exists('session_start')) {" + NL
+ " echo('This php server does not support session_start and hence not the CRUD interface.');" + NL
+ " exit(0);" + NL
+ "}" + NL
+ "ini_set('display_errors','On');" + NL
+ "error_reporting(E_ALL);" + NL
+ "require_once('" + SETUP_RELATIVE_PATHNAME + "');" + NL

0 comments on commit 7db60ad

Please sign in to comment.