Skip to content

Commit

Permalink
v3.1.05
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Parker committed Oct 17, 2021
1 parent 4714300 commit 759fc31
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Credentials/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,8 @@
++$count;
$sql[$count][0] = '3.1.04';
$sql[$count][1] = "";

//3.1.05
++$count;
$sql[$count][0] = '3.1.05';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Credentials/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v3.1.05
-------
Final session refactoring

v3.1.04
-------
Fixed session issue in View Credentials
Expand Down
2 changes: 1 addition & 1 deletion Credentials/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'credentials.php';
$type = 'Additional';
$category = 'Admin';
$version = '3.1.04';
$version = '3.1.05';
$author = 'Ross Parker';
$url = 'http://rossparker.org';

Expand Down
8 changes: 5 additions & 3 deletions Credentials/moduleFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
define('ENCRYPTION_DIVIDER_TOKEN', '$$');

function getHookCredentialGrid($guid, $connection2, $gibbonPersonID, $mini = false) {
global $session;

$return = null;

try {
Expand Down Expand Up @@ -82,9 +84,9 @@ function getHookCredentialGrid($guid, $connection2, $gibbonPersonID, $mini = fal
$size = '75px';
}
if ($row['logo'] != '') {
$return .= "<img class='user' style='max-width: $size' src='".$_SESSION[$guid]['absoluteURL'].'/'.$row['logo']."'/>";
$return .= "<img class='user' style='max-width: $size' src='".$session->get('absoluteURL').'/'.$row['logo']."'/>";
} else {
$return .= "<img class='user' style='max-width: $size' src='".$_SESSION[$guid]['absoluteURL'].'/themes/'.$_SESSION[$guid]['gibbonThemeName']."/img/anonymous_240_square.jpg'/>";
$return .= "<img class='user' style='max-width: $size' src='".$session->get('absoluteURL').'/themes/'.$session->get('gibbonThemeName')."/img/anonymous_240_square.jpg'/>";
}
$return .= '</td>';
$return .= '<td>';
Expand Down Expand Up @@ -114,7 +116,7 @@ function getHookCredentialGrid($guid, $connection2, $gibbonPersonID, $mini = fal
$return .= '});';
$return .= '</script>';
if ($row['credentialNotes'] != '' or $row['websiteNotes'] != '') {
$return .= "<a title='".__m('View Notes')."' class='show_hide-$count-$gibbonPersonID' onclick='false' href='#'><img style='padding-right: 5px' src='".$_SESSION[$guid]['absoluteURL'].'/themes/'.$_SESSION[$guid]['gibbonThemeName']."/img/page_down.png' alt='".__m('View Notes')."' onclick='return false;' /></a>";
$return .= "<a title='".__m('View Notes')."' class='show_hide-$count-$gibbonPersonID' onclick='false' href='#'><img style='padding-right: 5px' src='".$session->get('absoluteURL').'/themes/'.$session->get('gibbonThemeName')."/img/page_down.png' alt='".__m('View Notes')."' onclick='return false;' /></a>";
}
echo '</td>';
$return .= '</tr>';
Expand Down
2 changes: 1 addition & 1 deletion Credentials/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Sets version information.
*/
$moduleVersion = '3.1.04';
$moduleVersion = '3.1.05';
$coreVersion = '22.0.00';

0 comments on commit 759fc31

Please sign in to comment.