@@ -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 |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | { |
| 193 | 193 | global $xoopsModule; |
| 194 | 194 | |
| 195 | - $smartModule =& smartsection_getModuleInfo(); |
|
| 195 | + $smartModule = & smartsection_getModuleInfo(); |
|
| 196 | 196 | |
| 197 | 197 | $result = true; |
| 198 | 198 | $module_id = $smartModule->getVar('mid'); |
@@ -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 |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * Licence: GNU |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 10 | -include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 9 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 10 | +include_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 11 | 11 | |
| 12 | 12 | smart_loadCommonLanguageFile(); |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | */ |
| 104 | 104 | public function render($fetchOnly = false, $debug = false) |
| 105 | 105 | { |
| 106 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 106 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 107 | 107 | |
| 108 | 108 | $this->_tpl = new XoopsTpl(); |
| 109 | 109 | $vars = $this->_object->vars; |
@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | // ------------------------------------------------------------------------- // |
| 31 | 31 | |
| 32 | 32 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 33 | -require_once XOOPS_ROOT_PATH . '/kernel/user.php'; |
|
| 34 | -require_once XOOPS_ROOT_PATH . '/kernel/group.php'; |
|
| 35 | -require_once XOOPS_ROOT_PATH . '/kernel/member.php'; |
|
| 33 | +require_once XOOPS_ROOT_PATH.'/kernel/user.php'; |
|
| 34 | +require_once XOOPS_ROOT_PATH.'/kernel/group.php'; |
|
| 35 | +require_once XOOPS_ROOT_PATH.'/kernel/member.php'; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * XOOPS member handler class. |
@@ -151,14 +151,14 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | if ($notifyUser) { |
| 153 | 153 | // send some notifications |
| 154 | - $xoopsMailer =& getMailer(); |
|
| 154 | + $xoopsMailer = & getMailer(); |
|
| 155 | 155 | $xoopsMailer->useMail(); |
| 156 | - $xoopsMailer->setTemplateDir(SMARTOBJECT_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/mail_template'); |
|
| 156 | + $xoopsMailer->setTemplateDir(SMARTOBJECT_ROOT_PATH.'language/'.$xoopsConfig['language'].'/mail_template'); |
|
| 157 | 157 | $xoopsMailer->setTemplate('smartobject_notify_user_added_by_admin.tpl'); |
| 158 | 158 | $xoopsMailer->assign('XOOPS_USER_PASSWORD', $password); |
| 159 | 159 | $xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']); |
| 160 | 160 | $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']); |
| 161 | - $xoopsMailer->assign('SITEURL', XOOPS_URL . '/'); |
|
| 161 | + $xoopsMailer->assign('SITEURL', XOOPS_URL.'/'); |
|
| 162 | 162 | $xoopsMailer->assign('NAME', $userObj->getVar('name')); |
| 163 | 163 | $xoopsMailer->assign('UNAME', $userObj->getVar('uname')); |
| 164 | 164 | $xoopsMailer->setToUsers($userObj); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | if (strlen($name) > 0) { |
| 205 | 205 | $name = explode(' ', trim($name)); |
| 206 | 206 | if (count($name) > 1) { |
| 207 | - $basename = strtolower(substr($name[0], 0, 1) . $name[count($name) - 1]); |
|
| 207 | + $basename = strtolower(substr($name[0], 0, 1).$name[count($name) - 1]); |
|
| 208 | 208 | } else { |
| 209 | 209 | $basename = strtolower($name[0]); |
| 210 | 210 | } |
@@ -221,9 +221,9 @@ discard block |
||
| 221 | 221 | while ($i < $count) { |
| 222 | 222 | $num = $this->genRandNumber(); |
| 223 | 223 | if ($onbasename < 0 && $hasbasename) { |
| 224 | - $names[] = xoops_substr($basename, 0, 58, '') . $num; |
|
| 224 | + $names[] = xoops_substr($basename, 0, 58, '').$num; |
|
| 225 | 225 | } else { |
| 226 | - $names[] = xoops_substr($emailname, 0, 58, '') . $num; |
|
| 226 | + $names[] = xoops_substr($emailname, 0, 58, '').$num; |
|
| 227 | 227 | } |
| 228 | 228 | $i = count($names); |
| 229 | 229 | $onbasename = ~$onbasename; |
@@ -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 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 14 | -include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobject.php'; |
|
| 14 | +include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobject.php'; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * SmartObject base Multilanguage-enabled class |
@@ -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) { |
@@ -118,21 +118,21 @@ discard block |
||
| 118 | 118 | public function getObjects($criteria = null, $id_as_key = false, $as_object = true, $debug = false, $language = false) |
| 119 | 119 | { |
| 120 | 120 | // Create the first part of the SQL query to join the "_text" table |
| 121 | - $sql = 'SELECT * FROM ' . |
|
| 122 | - $this->table . |
|
| 123 | - ' AS ' . |
|
| 124 | - $this->_itemname . |
|
| 125 | - ' INNER JOIN ' . |
|
| 126 | - $this->table . |
|
| 127 | - '_text AS ' . |
|
| 128 | - $this->_itemname . |
|
| 129 | - '_text ON ' . |
|
| 130 | - $this->_itemname . |
|
| 131 | - '.' . |
|
| 132 | - $this->keyName . |
|
| 133 | - '=' . |
|
| 134 | - $this->_itemname . |
|
| 135 | - '_text.' . |
|
| 121 | + $sql = 'SELECT * FROM '. |
|
| 122 | + $this->table. |
|
| 123 | + ' AS '. |
|
| 124 | + $this->_itemname. |
|
| 125 | + ' INNER JOIN '. |
|
| 126 | + $this->table. |
|
| 127 | + '_text AS '. |
|
| 128 | + $this->_itemname. |
|
| 129 | + '_text ON '. |
|
| 130 | + $this->_itemname. |
|
| 131 | + '.'. |
|
| 132 | + $this->keyName. |
|
| 133 | + '='. |
|
| 134 | + $this->_itemname. |
|
| 135 | + '_text.'. |
|
| 136 | 136 | $this->keyName; |
| 137 | 137 | |
| 138 | 138 | if ($language) { |
@@ -171,6 +171,6 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | public function changeTableNameForML() |
| 173 | 173 | { |
| 174 | - $this->table = $this->db->prefix($this->_moduleName . '_' . $this->_itemname . '_text'); |
|
| 174 | + $this->table = $this->db->prefix($this->_moduleName.'_'.$this->_itemname.'_text'); |
|
| 175 | 175 | } |
| 176 | 176 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 31 | 31 | |
| 32 | -include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobject.php'; |
|
| 32 | +include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobject.php'; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Class SmartobjectBasedUrl |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 3 | 3 | |
| 4 | -include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/basedurl.php'; |
|
| 4 | +include_once XOOPS_ROOT_PATH.'/modules/smartobject/class/basedurl.php'; |
|
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 7 | * Class SmartobjectFile |