Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Apr 15, 2019
1 parent a3f27c3 commit d50017c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions class/PicturesHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ public function deleteAll(\CriteriaElement $criteria = null)
*/
public function renderFormSubmit($uid, $lid, $maxbytes, $xoopsTpl)
{
global $xoopsUser;
$uid = (int)$uid;
$lid = (int)$lid;
$form = new \XoopsThemeForm(_ADSLIGHT_SUBMIT_PIC_TITLE, 'form_picture', XOOPS_URL . "/modules/adslight/add_photo.php?lid={$lid}&uid=" . $xoopsUser->getVar('uid'), 'post', true);
Expand Down
2 changes: 2 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

use Xmf\Module\Admin;

include __DIR__ . '/preloads/autoloader.php';

$GLOBALS['xoopsOption']['template_main'] = 'adslight_index.tpl';

$moduleDirName = basename(__DIR__);
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

$prem_perm = (!$grouppermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) ? '0' : '1';

$mytree = new Adslight\ClassifiedsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid');
$mytree = new \XoopsModules\Adslight\ClassifiedsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid');

# function index
#####################################################
Expand Down

0 comments on commit d50017c

Please sign in to comment.