diff options
author | jim-p <jimp@pfsense.org> | 2012-06-07 12:20:43 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-06-07 12:20:43 -0400 |
commit | 9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d (patch) | |
tree | c9cbe6dbe88d3af13c92c29680b43f5a3552d4bc | |
parent | 93888ad9ffac90b4dce8d31eda2571d82dd52f38 (diff) | |
download | pfsense-9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d.zip pfsense-9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d.tar.gz |
While I'm here, don't test these with isset, just test directly, since they will be set to true/false in globals.inc
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 4 | ||||
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index b8d943c..10fa1c1 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -211,7 +211,7 @@ include("head.inc"); <?= $size ?> </td> --> - <?php if (isset($g['disablepackagehistory'])){?> + <?php if ($g['disablepackagehistory']){?> <td class="listr"> <?php }else{?> <td class="listr" <?=domTT_title(gettext("Click ".ucfirst($index['name'])." version to check it's changelog."))?>> @@ -219,7 +219,7 @@ include("head.inc"); <?=$index['status'] ?> <br/> <?php - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) echo"<a>{$index['version']}</a>"; else echo "<a target='_new' href='{$changeloglink}'>{$index['version']}</a>"; diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 75979ed..d8c25ad 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -138,7 +138,7 @@ include("head.inc"); // we're running a newer version of the package if(strcmp($pkg['version'], $latest_package) > 0) { $tdclass = "listbggrey"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>".gettext("Available") .": ". $latest_package . "<br/>"; else $pkgver = "<a target='_new' href='$changeloglink'>".gettext("Available") .": ". $latest_package . "<br/>"; @@ -147,7 +147,7 @@ include("head.inc"); // we're running an older version of the package if(strcmp($pkg['version'], $latest_package) < 0) { $tdclass = "listbg"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>"; else $pkgver = "<a target='_new' href='$changeloglink'><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>"; @@ -156,7 +156,7 @@ include("head.inc"); // we're running the current version if(!strcmp($pkg['version'], $latest_package)) { $tdclass = "listr"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>{$pkg['version']}</a>"; else $pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>"; @@ -166,7 +166,7 @@ include("head.inc"); $pkgver = ""; if(!strcmp($pkg['version'], $latest_package)) { $tdclass = "listr"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>{$pkg['version']}</a>"; else $pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>"; |