diff --git a/lib/github-manager.php b/lib/github-manager.php
index 761b831..a75f283 100644
--- a/lib/github-manager.php
+++ b/lib/github-manager.php
@@ -48,9 +48,9 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
$settingsContents = substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
// Now update the config file
- if (is_writeable($settingsFile)) {
- $fh = fopen($settingsFile, 'w');
- fwrite($fh, $settingsContents);
+ if (is_writeable("../data/".$settingsFile)) {
+ $fh = fopen("../data/".$settingsFile, 'w');
+ fwrite($fh, "../data/".$settingsContents);
fclose($fh);
// Clear any FTP session we may have
@@ -59,7 +59,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
// Hide this popup and reload file manager
echo "";
} else {
- echo "";
+ echo "";
}
}
@@ -151,16 +151,16 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
$settingsContents = substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));
// Now update the config file
- if (is_writeable($settingsFile)) {
- $fh = fopen($settingsFile, 'w');
- fwrite($fh, $settingsContents);
+ if (is_writeable("../data/".$settingsFile)) {
+ $fh = fopen("../data/".$settingsFile, 'w');
+ fwrite($fh, "../data/".$settingsContents);
fclose($fh);
// Finally, reload the iFrame screen for the user
header("Location: github-manager.php?updatedGithubPaths&csrf=".$_SESSION["csrf"]);
echo "";
die($t['saving github paths']);
} else {
- echo "";
+ echo "";
}
}
}