Skip to content

Commit 85276dc

Browse files
committed
Convert CSS color value to HEX, updates
1 parent e6799a5 commit 85276dc

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

admin/admin.tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
$msgDBUpdated = '';
5252
foreach ($postTags as $tag => $tag_status) {
5353
$tag_obj = $tagHandler->get($tag);
54-
if (!($tag_obj instanceof Tag) || !$tag_obj->getVar('tag_id')) {
54+
if (!($tag_obj instanceof Tag\Tag) || !$tag_obj->getVar('tag_id')) {
5555
continue;
5656
}
5757
if ($tag_status < Constants::STATUS_ACTIVE) {

class/Common/ServerStats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function getServerStats()
5555
$html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . "</div>\n";
5656
$html .= "<ul>\n";
5757

58-
$gdlib = function_exists('gd_info') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
58+
$gdlib = function_exists('gd_info') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
5959
$html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
6060
if (function_exists('gd_info')) {
6161
if (true === ($gdlib = gd_info())) {
@@ -69,7 +69,7 @@ public static function getServerStats()
6969
// $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: green;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: red;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
7070
// $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
7171
//
72-
$downloads = ini_get('file_uploads') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
72+
$downloads = ini_get('file_uploads') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
7373
$html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
7474

7575
$html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . ini_get('upload_max_filesize') . "</span></b>\n";

class/FormTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct($name, $size, $maxlength, $value = null, $catid = 0)
4949
}
5050
$value = empty($value) ? '' : $value;
5151
// itemid
52-
if (!empty($value) && is_numeric($value) && ($GLOBALS['xoopsModule'] instanceof XoopsModule)) {
52+
if (!empty($value) && is_numeric($value) && ($GLOBALS['xoopsModule'] instanceof \XoopsModule)) {
5353
$modid = $GLOBALS['xoopsModule']->getVar('mid');
5454
/** @var \XoopsModules\Tag\TagHandler $tagHandler */
5555
$tagHandler = Tag\Helper::getInstance()->getHandler('Tag'); // xoops_getModuleHandler('tag', 'tag');

class/TagHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function updateByItem($tags, $itemid, $modid = '', $catid = 0)
105105
$moduleHandler = xoops_getHandler('module');
106106
$modid = ($module_obj = $moduleHandler->getByDirname($modid)) ? $module_obj->getVar('mid') : 0;
107107
}
108-
} elseif ($GLOBALS['xoopsModule'] instanceof XoopsModule) {
108+
} elseif ($GLOBALS['xoopsModule'] instanceof \XoopsModule) {
109109
$modid = $GLOBALS['xoopsModule']->getVar('mid');
110110
}
111111

@@ -195,6 +195,7 @@ public function updateByItem($tags, $itemid, $modid = '', $catid = 0)
195195
public function update_stats($tag_id, $modid = 0, $catid = 0)
196196
{
197197
$tag_id = (int)$tag_id;
198+
$tag_count = [];
198199
if (empty($tag_id)) {
199200
return true;
200201
}

0 commit comments

Comments
 (0)