@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | global $xoopsConfig; |
| 107 | 107 | |
| 108 | - $configHandler = xoops_getHandler('config'); |
|
| 108 | + $configHandler = xoops_getHandler('config'); |
|
| 109 | 109 | $xoopsConfigUser = $configHandler->getConfigsByCat(XOOPS_CONF_USER); |
| 110 | 110 | switch ($xoopsConfigUser['activation_type']) { |
| 111 | 111 | case 0: |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | if ($notifyUser) { |
| 153 | 153 | // send some notifications |
| 154 | - $xoopsMailer =& getMailer(); |
|
| 154 | + $xoopsMailer = & getMailer(); |
|
| 155 | 155 | $xoopsMailer->useMail(); |
| 156 | 156 | $xoopsMailer->setTemplateDir(SMARTOBJECT_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/mail_template'); |
| 157 | 157 | $xoopsMailer->setTemplate('smartobject_notify_user_added_by_admin.tpl'); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | { |
| 266 | 266 | static $randCalled = false; |
| 267 | 267 | if (!$randCalled) { |
| 268 | - mt_srand((double)microtime() * 1000000); |
|
| 268 | + mt_srand((double) microtime() * 1000000); |
|
| 269 | 269 | $randCalled = true; |
| 270 | 270 | } |
| 271 | 271 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function stripMultilanguageFields() |
| 53 | 53 | { |
| 54 | - $objectVars =& $this->getVars(); |
|
| 54 | + $objectVars = & $this->getVars(); |
|
| 55 | 55 | $newObjectVars = array(); |
| 56 | 56 | foreach ($objectVars as $key => $var) { |
| 57 | 57 | if (!$var['multilingual']) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | public function stripNonMultilanguageFields() |
| 65 | 65 | { |
| 66 | - $objectVars =& $this->getVars(); |
|
| 66 | + $objectVars = & $this->getVars(); |
|
| 67 | 67 | $newObjectVars = array(); |
| 68 | 68 | foreach ($objectVars as $key => $var) { |
| 69 | 69 | if ($var['multilingual'] || $key == $this->handler->keyName) { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $controlHandler = xoops_getModuleHandler($control['itemHandler'], $control['module']); |
| 53 | 53 | } |
| 54 | 54 | } else { |
| 55 | - $controlHandler =& $object->handler; |
|
| 55 | + $controlHandler = & $object->handler; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | // Checking if the specified method exists |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $controlHandler = xoops_getModuleHandler($control['itemHandler'], $control['module']); |
| 48 | 48 | } |
| 49 | 49 | } else { |
| 50 | - $controlHandler =& $object->handler; |
|
| 50 | + $controlHandler = & $object->handler; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | // Checking if the specified method exists |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $criteria = new CriteriaCompo(); |
| 23 | 23 | $criteria->setSort('weight, name'); |
| 24 | 24 | $categoryHandler = xoops_getModuleHandler('category', $object->handler->_moduleName); |
| 25 | - $categories = $categoryHandler->getObjects($criteria); |
|
| 25 | + $categories = $categoryHandler->getObjects($criteria); |
|
| 26 | 26 | |
| 27 | 27 | include_once(XOOPS_ROOT_PATH . '/class/tree.php'); |
| 28 | 28 | $mytree = new XoopsObjectTree($categories, 'categoryid', 'parentid'); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function __construct(&$target, $form_name, $form_caption, $form_action, $form_fields = null, $submit_button_caption = false, $cancel_js_action = false, $captcha = false) |
| 54 | 54 | { |
| 55 | - $this->targetObject =& $target; |
|
| 55 | + $this->targetObject = & $target; |
|
| 56 | 56 | $this->form_fields = $form_fields; |
| 57 | 57 | $this->_cancel_js_action = $cancel_js_action; |
| 58 | 58 | $this->_captcha = $captcha; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function addCustomButton($name, $caption, $onclick = false) |
| 93 | 93 | { |
| 94 | - $custom_button_array = array( |
|
| 94 | + $custom_button_array = array( |
|
| 95 | 95 | 'name' => $name, |
| 96 | 96 | 'caption' => $caption, |
| 97 | 97 | 'onclick' => $onclick |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | if ($permissions) { |
| 288 | 288 | $memberHandler = xoops_getHandler('member'); |
| 289 | - $group_list = $memberHandler->getGroupList(); |
|
| 289 | + $group_list = $memberHandler->getGroupList(); |
|
| 290 | 290 | asort($group_list); |
| 291 | 291 | foreach ($permissions as $permission) { |
| 292 | 292 | if ($this->targetObject->isNew()) { |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | { |
| 685 | 685 | foreach ($this->_elements as $eleObj) { |
| 686 | 686 | if ($eleObj->getName() == $keyname) { |
| 687 | - $ret =& $eleObj; |
|
| 687 | + $ret = & $eleObj; |
|
| 688 | 688 | break; |
| 689 | 689 | } |
| 690 | 690 | } |
@@ -782,7 +782,7 @@ discard block |
||
| 782 | 782 | $formname = $this->getName(); |
| 783 | 783 | $js .= "function xoopsFormValidate_{$formname}(myform) {"; |
| 784 | 784 | // First, output code to check required elements |
| 785 | - $elements =& $this->getRequired(); |
|
| 785 | + $elements = & $this->getRequired(); |
|
| 786 | 786 | foreach ($elements as $elt) { |
| 787 | 787 | $eltname = $elt->getName(); |
| 788 | 788 | $eltcaption = trim($elt->getCaption()); |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | } |
| 835 | 835 | } |
| 836 | 836 | // Now, handle custom validation code |
| 837 | - $elements =& $this->getElements(true); |
|
| 837 | + $elements = & $this->getElements(true); |
|
| 838 | 838 | foreach ($elements as $elt) { |
| 839 | 839 | if (method_exists($elt, 'renderValidationJS') && strtolower(get_class($elt)) !== 'xoopsformcheckbox') { |
| 840 | 840 | if ($eltjs = $elt->renderValidationJS()) { |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | $criteria->add($criteria_language); |
| 222 | 222 | |
| 223 | 223 | $smartobjectPermissionsHandler = new SmartObjectPermissionHandler($this); |
| 224 | - $granted_ids = $smartobjectPermissionsHandler->getGrantedItems('view'); |
|
| 224 | + $granted_ids = $smartobjectPermissionsHandler->getGrantedItems('view'); |
|
| 225 | 225 | |
| 226 | 226 | if ($granted_ids && count($granted_ids) > 0) { |
| 227 | 227 | $criteria->add(new Criteria('customtagid', '(' . implode(', ', $granted_ids) . ')', 'IN')); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $objectHandler = xoops_getModuleHandler($item, $modulename); |
| 75 | 75 | |
| 76 | 76 | if (method_exists($objectHandler, 'getObjects')) { |
| 77 | - $objects = $objectHandler->getObjects($criteria, true); |
|
| 77 | + $objects = $objectHandler->getObjects($criteria, true); |
|
| 78 | 78 | $this->_registryArray['objects'][$objectHandler->_moduleName][$objectHandler->_itemname] = $objects; |
| 79 | 79 | |
| 80 | 80 | return $objects; |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | public function valToCsvHelper($val, $separator, $trimFunction) |
| 204 | 204 | { |
| 205 | 205 | if ($trimFunction) { |
| 206 | - $val = $trimFunction ($val); |
|
| 206 | + $val = $trimFunction($val); |
|
| 207 | 207 | } |
| 208 | 208 | //If there is a separator (;) or a quote (") or a linebreak in the string, we need to quote it. |
| 209 | 209 | $needQuote = false; |