Skip to content

Commit

Permalink
Fixing Travis and NGINX no CRUD notice
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLethbridge committed Sep 28, 2018
1 parent 93f5f81 commit 7db60ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions cruise.umple/src/Generator_CodeUigu2.ump
Expand Up @@ -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
Expand Down

0 comments on commit 7db60ad

Please sign in to comment.