diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 5c06842b25d..5d0c431d050 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -979,9 +979,8 @@ if (!defined('NOLOGIN')) {
$oauthmodetotestarray = array('google');
foreach ($oauthmodetotestarray as $oauthmodetotest) {
if (in_array($oauthmodetotest.'oauth', $authmode)) { // This is an authmode that is currently qualified. Do we have to remove it ?
- // If we click on the link to use OAuth authentication or if we goes after callback return, we do nothing
- // TODO Use: if (GETPOST('beforeoauthloginredirect') == $oauthmodetotest || GETPOST('afteroauthloginreturn') == $oauthmodetotest) {
- if (GETPOST('beforeoauthloginredirect') == $oauthmodetotest || GETPOST('afteroauthloginreturn')) {
+ // If we click on the link to use OAuth authentication or if we go here after a callback return, we do nothing
+ if (GETPOST('beforeoauthloginredirect') == $oauthmodetotest || GETPOST('afteroauthloginreturn') == $oauthmodetotest) {
continue;
}
dol_syslog("User did not click on link for OAuth, or is not on the OAuth return, so we disable check using ".$oauthmodetotest);
@@ -1936,7 +1935,6 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
}
if (getDolGlobalString('THEME_ELDY_TOPMENU_BACK1')) {
- // TODO: use auto theme color switch
print ''."\n";
}
@@ -2231,7 +2229,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
print '' . "\n";
}
- // Leaflet TODO use dolibarr files
+ // Leaflet
if (getDolGlobalString('MAIN_USE_GEOPHP')) {
print ''."\n";
print ''."\n";
diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php
index f2f38ee3c05..a235d54d41f 100644
--- a/htdocs/viewimage.php
+++ b/htdocs/viewimage.php
@@ -306,7 +306,7 @@ if (!empty($hashp)) {
} elseif (GETPOSTINT("publictakepos")) {
if (getDolGlobalString('TAKEPOS_AUTO_ORDER') && in_array($modulepart, array('product', 'category'))) {
$accessallowed = 1; // When TakePOS Public Auto Order is enabled, we accept to see all images of product and categories with no login
- // TODO Replace this with a call of getPublicImageOfObject like used by website so
+ // TODO Replace the use of link to viewimage with a call to get link by getPublicImageOfObject, like done by website templates so
// only shared images are visible
}
} else {