forked from GNUsocial/gnu-social
		
	run foreign services script
This commit is contained in:
		@@ -196,6 +196,13 @@ function handlePost()
 | 
				
			|||||||
        showForm();
 | 
					        showForm();
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    updateStatus("Adding foreign service data to database...");
 | 
				
			||||||
 | 
					    $res = runDbScript(INSTALLDIR.'/db/foreign_services.sql', $conn);
 | 
				
			||||||
 | 
					    if ($res === false) {
 | 
				
			||||||
 | 
					        updateStatus("Can't run foreign service script.", true);
 | 
				
			||||||
 | 
					        showForm();
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    updateStatus("Writing config file...");
 | 
					    updateStatus("Writing config file...");
 | 
				
			||||||
    $sqlUrl = "mysqli://$username:$password@$host/$database";
 | 
					    $sqlUrl = "mysqli://$username:$password@$host/$database";
 | 
				
			||||||
    $res = writeConf($sitename, $sqlUrl);
 | 
					    $res = writeConf($sitename, $sqlUrl);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user