[255798] [syncup] Create a dedicated syncup user, flag sync translations as fuzzy
diff --git a/html/global.php b/html/global.php
index c46be68..448c966 100644
--- a/html/global.php
+++ b/html/global.php
@@ -69,6 +69,11 @@
#get the genie id
if(isset($ini['genie_id']))
$genie_id = $ini['genie_id'];
+
+$syncup_id = "";
+#get the syncup id
+if(isset($ini['syncup_id']))
+ $genie_id = $ini['syncup_id'];
global $context;
@@ -229,6 +234,16 @@
$User->loadFromID($genie_id);
return $User;
}
+/**
+* Returns the syncup user to be used for headless applications.
+* The user is found by looking for syncup_id in the base.conf file.
+*/
+function getSyncupUser() {
+ global $syncup_id;
+ $User = new User();
+ $User->loadFromID($syncup_id);
+ return $User;
+}
/**
* Returns the folder in which the images may be found.