Skip to content

Commit

Permalink
Merge bd255ac into 791d48f
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 authored Mar 31, 2022
2 parents 791d48f + bd255ac commit 46437ce
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@
// get all categories
$imagecategories = $imgcat_handler->getObjects();
$catcount = count($imagecategories);
$image_handler = xoops_getHandler('image');
/** @var \XoopsImageHandler $image_handler */
$image_handler = xoops_getHandler('image');
for ($i = 0; $i < $catcount; ++$i) {
echo '<tr valign="top" align="left"><td class="head">';
if (in_array($imagecategories[$i]->getVar('imgcat_id'), array_keys($catreadlist))) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

chdir('modules/' . $xoopsConfig['startpage'] . '/');
xoops_loadLanguage('main', $xoopsModule->getVar('dirname', 'n'));
xoops_loadLanguage('main', (string)$xoopsModule->getVar('dirname', 'n'));
$parsed = parse_url(XOOPS_URL);
$url = isset($parsed['scheme']) ? $parsed['scheme'] . '://' : 'http://';
if (isset($parsed['host'])) {
Expand Down
6 changes: 3 additions & 3 deletions htdocs/kernel/object.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ public function getValues($keys = null, $format = 's', $maxDepth = 1)
* YOU SHOULD NOT USE ANY OF THE UNICODE TYPES, THEY WILL BE REMOVED
*
* @access public
* @param string $key key of the object's variable to be returned
* @param string $format format to use for the output
* @param string $key key of the object's variable to be returned
* @param string|null $format format to use for the output
* @return mixed formatted value of the variable
*/
public function getVar($key, $format = 's')
public function getVar($key, $format = null)
{
$format = (null === $format) ? 's' : (string) $format;
$ret = null;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/kernel/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function isActive()
public function isOnline()
{
if (!isset($this->_isOnline)) {
/* @var XoopsOnlineHandler $online_handler */
/* @var XoopsOnlineHandler $onlinehandler */
$onlinehandler = xoops_getHandler('online');
$this->_isOnline = ($onlinehandler->getCount(new Criteria('online_uid', $this->getVar('uid'))) > 0);// ? true : false;
}
Expand Down
1 change: 1 addition & 0 deletions htdocs/modules/pm/admin/prune.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
echo $indexAdmin->addNavigation(basename(__FILE__));

$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'form';
/** @var \PmMessageHandler $pm_handler */
$pm_handler = xoops_getModuleHandler('message');

switch ($op) {
Expand Down
1 change: 1 addition & 0 deletions htdocs/modules/pm/viewpmsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
}

$start = Request::getInt('start', 0);
/** @var \PmMessageHandler $pm_handler */
$pm_handler = xoops_getModuleHandler('message');

if (isset($_POST['delete_messages']) && (isset($_POST['msg_id']) || isset($_POST['msg_ids']))) {
Expand Down

0 comments on commit 46437ce

Please sign in to comment.