- Timestamp:
- 12/04/11 20:05:12 (6 months ago)
- Location:
- trunk/inc/classes
- Files:
-
- 2 edited
-
BxDolForm.php (modified) (1 diff)
-
BxDolModuleQuery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/classes/BxDolForm.php
r15682 r15722 233 233 return isset($aData[$sKey]) ? $aData[$sKey] : false; 234 234 } 235 236 function setSubmittedValue($sKey, $mixedValue, $sMethod, &$aSpecificValues = false) { 237 $aData = array(); 238 if($sMethod == BX_DOL_FORM_METHOD_GET) { 239 $aData = &$_GET; 240 } else if($sMethod == BX_DOL_FORM_METHOD_POST) { 241 $aData = &$_POST; 242 } else if($sMethod == BX_DOL_FORM_METHOD_SPECIFIC) { 243 $aData = &$aSpecificValues; 244 } 245 246 return $aData[$sKey] = $mixedValue; 247 } 235 248 236 249 // Static Methods related to CSRF Tocken -
trunk/inc/classes/BxDolModuleQuery.php
r15664 r15722 62 62 63 63 switch($aParams['type']) { 64 case 'modules': 65 $sPostfix .= '_modules'; 66 $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_MODULE); 67 break; 64 68 case 'languages': 65 $sPostfix .= '_ modules';69 $sPostfix .= '_languages'; 66 70 $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_LANGUAGE); 67 break;68 case 'modules':69 $sPostfix .= '_languages';70 $sWhereClause .= $this->prepare(" AND `type`=?", BX_DOL_MODULE_TYPE_MODULE);71 71 break; 72 72 case 'templates': … … 81 81 } 82 82 83 $sSql = "SELECT `id`, `type` `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE 1" . $sWhereClause . " ORDER BY `title`";83 $sSql = "SELECT `id`, `type`, `title`, `vendor`, `version`, `product_url`, `update_url`, `path`, `uri`, `class_prefix`, `db_prefix`, `lang_category`, `date`, `enabled` FROM `sys_modules` WHERE 1" . $sWhereClause . " ORDER BY `title`"; 84 84 return $this->fromMemory('sys_modules' . $sPostfix, 'getAll', $sSql); 85 85 }
Note: See TracChangeset
for help on using the changeset viewer.