HomeHelpTrac

Changeset 13923 for trunk/categories.php


Ignore:
Timestamp:
04/18/10 12:09:01 (2 years ago)
Author:
Leonid Sokushev
Message:

REQUEST replacements, small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/categories.php

    r13000 r13923  
    5050    } 
    5151         
    52     $aParam['type'] = isset($_REQUEST['tags_mode']) ? $_REQUEST['tags_mode'] : $oCateg->getFirstObject(); 
     52    $aParam['type'] = isset($_GET['tags_mode']) ? $_GET['tags_mode'] : $oCateg->getFirstObject(); 
    5353     
    5454    $sCode = $oCateg->display($aParam, $iBoxId, $sAction, $bOrderPanel, getParam('categ_show_columns')); 
     
    191191    function getBlockCode_Calendar($iBlockId) 
    192192    { 
    193         $sYear = isset($_REQUEST['year']) ? (int)$_REQUEST['year'] : ''; 
    194         $sMonth = isset($_REQUEST['month']) ? (int)$_REQUEST['month'] : ''; 
     193        $sYear = isset($_GET['year']) ? (int)$_GET['year'] : ''; 
     194        $sMonth = isset($_GET['month']) ? (int)$_GET['month'] : ''; 
    195195        $oCalendar = new CategoriesCalendar($sYear, $sMonth); 
    196196         
     
    200200    function getBlockCode_CategoriesDate($iBlockId) 
    201201    { 
    202         if (isset($_REQUEST['year']) && isset($_REQUEST['month']) && isset($_REQUEST['day'])) 
     202        if (isset($_GET['year']) && isset($_GET['month']) && isset($_GET['day'])) 
    203203        { 
    204204            $aParam = array( 
    205205                'pagination' => getParam('categ_perpage_browse'), 
    206206                'date' => array( 
    207                     'year' => (int)$_REQUEST['year'], 
    208                     'month' => (int)$_REQUEST['month'], 
    209                     'day' => (int)$_REQUEST['day'] 
     207                    'year' => (int)$_GET['year'], 
     208                    'month' => (int)$_GET['month'], 
     209                    'day' => (int)$_GET['day'] 
    210210                ) 
    211211            ); 
     
    281281            'pagination' => getParam('categ_perpage_browse') 
    282282        ); 
    283          
    284         if (isset($_REQUEST['filter'])) 
    285             $aParam['filter'] = $_REQUEST['filter']; 
     283        $sFilter = bx_get('filter'); 
     284        if ($sFilter !== false) 
     285            $aParam['filter'] = $sFilter; 
    286286        else if ($this->oForm->isSubmittedAndValid()) 
    287287            $aParam['filter'] = $this->oForm->getCleanValue('Keyword'); 
     
    337337} 
    338338 
    339 switch ($_REQUEST['action']) 
     339switch ($_GET['action']) 
    340340{ 
    341341    case BX_CATEG_ACTION_COMMON: 
Note: See TracChangeset for help on using the changeset viewer.