Completed
Push — master ( c2d7ad...3f78da )
by Thomas
07:29
created
htdocs/config2/settings-sample.inc.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
  * other parameters may be customized
67 67
  */
68 68
 $opt['session']['mode'] = SAVE_COOKIE;
69
-$opt['session']['cookiename'] = '<cookiename>';   // e.g. 'ocde'
70
-$opt['session']['domain'] = '<.do.main>';  // may be overwritten by $opt['domain'][...]['cookiedomain']
69
+$opt['session']['cookiename'] = '<cookiename>'; // e.g. 'ocde'
70
+$opt['session']['domain'] = '<.do.main>'; // may be overwritten by $opt['domain'][...]['cookiedomain']
71 71
 
72 72
 /* If the Referer was sent by the client and the substring was not found,
73 73
  * the embedded session id will be marked as invalid.
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 /* default locale
102 102
  */
103
-$opt['template']['default']['locale'] = 'DE';   // can be overwritten by $opt['domain'][<domain>]['locale']
103
+$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale']
104 104
 
105 105
 /* multi-domain settings
106 106
  *
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
  */
192 192
 $opt['lib']['garmin']['domain'] = '<domain>';
193 193
 $opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
194
-$opt['lib']['garmin']['url'] = 'http://' . $opt['lib']['garmin']['domain'] . '/';
194
+$opt['lib']['garmin']['url'] = 'http://'.$opt['lib']['garmin']['domain'].'/';
195 195
 $opt['lib']['garmin']['page_url'] = 'http://<domain>/';
196 196
 
197 197
 // developer.what3words.com API Key
Please login to merge, or discard this patch.
htdocs/config2/settings-dev.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 );
81 81
 
82 82
 $opt['page']['develsystem'] = true;
83
-$opt['page']['max_logins_per_hour'] = 1000;    // for development ...
83
+$opt['page']['max_logins_per_hour'] = 1000; // for development ...
84 84
 
85 85
 $opt['mail']['from'] = 'root';
86 86
 $opt['mail']['subject'] = '[local.opencaching.de] ';
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 $opt['lib']['garmin']['key'] = '00112233445566778899AABBCCDDEEFF00';
103 103
 $opt['lib']['garmin']['domain'] = 'local.opencaching.de';
104 104
 $opt['lib']['garmin']['url'] = 'http://local.opencaching.de/';
105
-$opt['lib']['garmin']['page_url'] = $opt['lib']['garmin']['url'] . ($dev_codepath == '*' ? '' : $dev_codepath . 'htdocs/');
105
+$opt['lib']['garmin']['page_url'] = $opt['lib']['garmin']['url'].($dev_codepath == '*' ? '' : $dev_codepath.'htdocs/');
106 106
 
107 107
 // developer.what3words.com API Key
108 108
 $opt['lib']['w3w']['apikey'] = 'YOURAPIKEY';
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 $opt['page']['showsocialmedia'] = true;
113 113
 $opt['page']['headoverlay'] = 'oc_head_alpha3';
114 114
 
115
-$opt['logic']['pictures']['dummy']['replacepic'] = $dev_basepath . $dev_codepath . 'htdocs/images/no_image_license.png';
115
+$opt['logic']['pictures']['dummy']['replacepic'] = $dev_basepath.$dev_codepath.'htdocs/images/no_image_license.png';
116 116
 $opt['logic']['license']['disclaimer'] = true;
117 117
 $opt['logic']['admin']['listingadmin_notification'] = 'root';
118 118
 
Please login to merge, or discard this patch.
htdocs/ownerlogs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'ownerlogs';
11 11
 $tpl->menuitem = MNU_MYPROFILE_OWNERLOGS;
@@ -83,4 +83,4 @@  discard block
 block discarded – undo
83 83
     )
84 84
 );
85 85
 
86
-require __DIR__ . '/newlogs.php';
86
+require __DIR__.'/newlogs.php';
Please login to merge, or discard this patch.
htdocs/searchplugin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  *  also used for waypoint search field.
10 10
  ***************************************************************************/
11 11
 
12
-require __DIR__ . '/lib2/web.inc.php';
12
+require __DIR__.'/lib2/web.inc.php';
13 13
 
14 14
 $tpl->name = 'searchplugin';
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 if (($sourceid == 'waypoint-search') && ($userinput != '')) {
32 32
     $sourceid = 'mozilla-search';
33
-    $userinput = 'wp:' . $userinput;
33
+    $userinput = 'wp:'.$userinput;
34 34
 }
35 35
 
36 36
 if (($sourceid == 'mozilla-search') && ($userinput != '')) {
@@ -56,22 +56,22 @@  discard block
 block discarded – undo
56 56
         $targeturl = 'search.php?showresult=1&expert=0&output=HTML&f_userowner=0&f_userfound=0';
57 57
         switch ($searchto) {
58 58
             case $keyword_name:
59
-                $targeturl .= '&utf8=1&sort=byname&searchbyname=1&f_inactive=1&cachename=' . $searchfor;
59
+                $targeturl .= '&utf8=1&sort=byname&searchbyname=1&f_inactive=1&cachename='.$searchfor;
60 60
                 break;
61 61
             case $keyword_finder:
62
-                $targeturl .= '&utf8=1&sort=byname&searchbyfinder=1&f_inactive=0&finder=' . $searchfor;
62
+                $targeturl .= '&utf8=1&sort=byname&searchbyfinder=1&f_inactive=0&finder='.$searchfor;
63 63
                 break;
64 64
             case $keyword_owner:
65
-                $targeturl .= '&utf8=1&sort=byname&searchbyowner=1&f_inactive=0&owner=' . $searchfor;
65
+                $targeturl .= '&utf8=1&sort=byname&searchbyowner=1&f_inactive=0&owner='.$searchfor;
66 66
                 break;
67 67
             case $keyword_town:
68
-                $targeturl .= '&utf8=1&searchbyort=1&f_inactive=1&ort=' . $searchfor . '&sort=' . $order;
68
+                $targeturl .= '&utf8=1&searchbyort=1&f_inactive=1&ort='.$searchfor.'&sort='.$order;
69 69
                 break;
70 70
             case $keyword_zipcode:
71
-                $targeturl .= '&utf8=1&sort=bydistance&searchbyplz=1&f_inactive=1&plz=' . $searchfor . '&sort=' . $order;
71
+                $targeturl .= '&utf8=1&sort=bydistance&searchbyplz=1&f_inactive=1&plz='.$searchfor.'&sort='.$order;
72 72
                 break;
73 73
             case $keyword_cacheid:
74
-                $targeturl .= '&utf8=1&sort=byname&searchbycacheid=1&f_inactive=1&cacheid=' . $searchfor;
74
+                $targeturl .= '&utf8=1&sort=byname&searchbycacheid=1&f_inactive=1&cacheid='.$searchfor;
75 75
                 break;
76 76
             case $keyword_wp:
77 77
                 $targeturl = 'index.php';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 }
86 86
 
87 87
                 if ((($target == 'oc') || ($target == 'gc')) && mb_ereg_match(
88
-                        '((' . $opt['logic']['ocprefixes'] . '|gc)([a-z0-9]){4,5}|n([a-f0-9]){5,5})$',
88
+                        '(('.$opt['logic']['ocprefixes'].'|gc)([a-z0-9]){4,5}|n([a-f0-9]){5,5})$',
89 89
                         mb_strtolower($searchfor)
90 90
                     )
91 91
                 ) {
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
                     // get cache_id from DB
98 98
                     // GC/NC waypoints can be duplicates -> return first match with least status number
99 99
                     $rs = sql(
100
-                        "SELECT `cache_id` FROM `caches` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE (`cache_status`.`allow_user_view`=1 OR `caches`.`user_id`='&1') AND " . $wpfield . "='&2' ORDER BY `caches`.`status`,`caches`.`cache_id` LIMIT 0,1",
100
+                        "SELECT `cache_id` FROM `caches` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE (`cache_status`.`allow_user_view`=1 OR `caches`.`user_id`='&1') AND ".$wpfield."='&2' ORDER BY `caches`.`status`,`caches`.`cache_id` LIMIT 0,1",
101 101
                         $login->userid,
102 102
                         $searchfor
103 103
                     );
104 104
                     if (sql_num_rows($rs)) {
105 105
                         $record = sql_fetch_array($rs);
106
-                        $targeturl = 'viewcache.php?cacheid=' . $record['cache_id'];
106
+                        $targeturl = 'viewcache.php?cacheid='.$record['cache_id'];
107 107
                         unset($record);
108 108
                     } else {
109 109
                         $tpl->error(ERROR_SEARCHPLUGIN_WAYPOINT_NOTFOUND, $searchfor);
Please login to merge, or discard this patch.
htdocs/removelog.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
  *  Unicode Reminder メモ
10 10
  ***************************************************************************/
11 11
 
12
-require_once __DIR__ . '/lib/consts.inc.php';
12
+require_once __DIR__.'/lib/consts.inc.php';
13 13
 $opt['gui'] = GUI_HTML;
14
-require_once __DIR__ . '/lib/common.inc.php';
15
-require_once $stylepath . '/lib/icons.inc.php';
16
-require_once __DIR__ . '/lib/recommendation.inc.php';
17
-require_once __DIR__ . '/lib/logic.inc.php';
18
-require_once __DIR__ . '/lib2/edithelper.inc.php';
14
+require_once __DIR__.'/lib/common.inc.php';
15
+require_once $stylepath.'/lib/icons.inc.php';
16
+require_once __DIR__.'/lib/recommendation.inc.php';
17
+require_once __DIR__.'/lib/logic.inc.php';
18
+require_once __DIR__.'/lib2/edithelper.inc.php';
19 19
 
20 20
 //Preprocessing
21 21
 if ($error == false) {
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $tplname = 'login';
30 30
 
31 31
         tpl_set_var('username', '');
32
-        tpl_set_var('target', htmlspecialchars('removelog.php?logid=' . urlencode($log_id), ENT_COMPAT, 'UTF-8'));
32
+        tpl_set_var('target', htmlspecialchars('removelog.php?logid='.urlencode($log_id), ENT_COMPAT, 'UTF-8'));
33 33
         tpl_set_var('message', $login_required);
34 34
         tpl_set_var('message_start', '');
35 35
         tpl_set_var('message_end', '');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $log_record = sql_fetch_array($log_rs);
70 70
             mysql_free_result($log_rs);
71 71
 
72
-            require $stylepath . '/removelog.inc.php';
72
+            require $stylepath.'/removelog.inc.php';
73 73
 
74 74
             if ($log_record['node'] != $oc_nodeid) {
75 75
                 tpl_errorMsg('removelog', $error_wrong_node);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                         $message = isset($_POST['logowner_message']) ? $_POST['logowner_message'] : '';
109 109
                         if ($message != '') {
110 110
                             //message to logger
111
-                            $message = $removed_message_title . "\n" . $message . "\n" . $removed_message_end;
111
+                            $message = $removed_message_title."\n".$message."\n".$removed_message_end;
112 112
                         }
113 113
 
114 114
                         $logtext = html2plaintext(
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                         }
167 167
 
168 168
                         sql("DELETE FROM `pictures` WHERE `id`='&1'", $r['id']);
169
-                        $archived = (sqlValue("SELECT `id` FROM `pictures_modified` WHERE `id`=" . $r['id'], 0) > 0);
169
+                        $archived = (sqlValue("SELECT `id` FROM `pictures_modified` WHERE `id`=".$r['id'], 0) > 0);
170 170
                         $fna = mb_split('\\/', $r['url']);
171 171
                         $filename = end($fna);
172 172
                         $path = $opt['logic']['pictures']['dir'];
@@ -175,18 +175,18 @@  discard block
 block discarded – undo
175 175
                         }
176 176
 
177 177
                         if ($archived) {
178
-                            @rename($path . $filename, $path . "deleted/" . $filename);
178
+                            @rename($path.$filename, $path."deleted/".$filename);
179 179
                         } else {
180
-                            @unlink($path . $filename);
180
+                            @unlink($path.$filename);
181 181
                         }
182 182
 
183 183
                         $path = $opt['logic']['pictures']['thumb_dir'];
184 184
                         if (mb_substr($path, - 1, 1) != '/') {
185 185
                             $path .= '/';
186 186
                         }
187
-                        $path .= mb_strtoupper(mb_substr($filename, 0, 1)) . '/' .
188
-                            mb_strtoupper(mb_substr($filename, 1, 1)) . '/';
189
-                        @unlink($path . $filename);  // Thumb
187
+                        $path .= mb_strtoupper(mb_substr($filename, 0, 1)).'/'.
188
+                            mb_strtoupper(mb_substr($filename, 1, 1)).'/';
189
+                        @unlink($path.$filename); // Thumb
190 190
 
191 191
                         /* lib2 code would be ...
192 192
                         $rs = sql("SELECT `id` FROM `pictures` WHERE `object_type`=1 AND `object_id`='&1'", $log_id);
@@ -224,11 +224,11 @@  discard block
 block discarded – undo
224 224
                     db_slave_exclude();
225 225
 
226 226
                     //call eventhandler
227
-                    require_once $opt['rootpath'] . 'lib/eventhandler.inc.php';
227
+                    require_once $opt['rootpath'].'lib/eventhandler.inc.php';
228 228
                     event_remove_log($log_record['cache_id'], $log_record['log_user_id']);
229 229
 
230 230
                     //cache anzeigen
231
-                    tpl_redirect('viewcache.php?cacheid=' . urlencode($log_record['cache_id']));
231
+                    tpl_redirect('viewcache.php?cacheid='.urlencode($log_record['cache_id']));
232 232
                     exit;
233 233
                 }
234 234
 
@@ -260,17 +260,17 @@  discard block
 block discarded – undo
260 260
                 tpl_set_var('logid', htmlspecialchars($log_id, ENT_COMPAT, 'UTF-8'));
261 261
 
262 262
                 if ($log_record['oc_team_comment']) {
263
-                    $teamimg = '<img src="resource2/ocstyle/images/oclogo/oc-team-comment.png" title="' . t('OC team comment') . '" /> ';
263
+                    $teamimg = '<img src="resource2/ocstyle/images/oclogo/oc-team-comment.png" title="'.t('OC team comment').'" /> ';
264 264
                 } else {
265 265
                     $teamimg = "";
266 266
                 }
267
-                tpl_set_var('logimage', $teamimg . icon_log_type($log_record['icon_small'], ""));
267
+                tpl_set_var('logimage', $teamimg.icon_log_type($log_record['icon_small'], ""));
268 268
 
269 269
                 tpl_set_var(
270 270
                     'date',
271 271
                     htmlspecialchars(strftime($dateformat, strtotime($log_record['log_date'])), ENT_COMPAT, 'UTF-8')
272 272
                 );
273
-                tpl_set_var('time', substr($log_record['log_date'], 11) == "00:00:00" ? "" : ", " . substr($log_record['log_date'], 11, 5));
273
+                tpl_set_var('time', substr($log_record['log_date'], 11) == "00:00:00" ? "" : ", ".substr($log_record['log_date'], 11, 5));
274 274
                 tpl_set_var('userid', htmlspecialchars($log_record['log_user_id'] + 0, ENT_COMPAT, 'UTF-8'));
275 275
                 tpl_set_var('username', htmlspecialchars($log_record['log_username'], ENT_COMPAT, 'UTF-8'));
276 276
                 tpl_set_var('typetext', htmlspecialchars($sLogTypeText, ENT_COMPAT, 'UTF-8'));
Please login to merge, or discard this patch.
htdocs/lib/cookie.class.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
     {
19 19
         global $opt;
20 20
 
21
-        if (isset($_COOKIE[$opt['cookie']['name'] . 'data'])) {
21
+        if (isset($_COOKIE[$opt['cookie']['name'].'data'])) {
22 22
             //get the cookievars-array
23
-            $decoded = base64_decode($_COOKIE[$opt['cookie']['name'] . 'data']);
23
+            $decoded = base64_decode($_COOKIE[$opt['cookie']['name'].'data']);
24 24
 
25 25
             if ($decoded !== false) {
26 26
                 $this->values = @unserialize($decoded);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         if ($this->changed == true) {
67 67
             if (count($this->values) == 0) {
68 68
                 setcookie(
69
-                    $opt['cookie']['name'] . 'data',
69
+                    $opt['cookie']['name'].'data',
70 70
                     false,
71 71
                     time() + 31536000,
72 72
                     $opt['cookie']['path'],
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 );
76 76
             } else {
77 77
                 setcookie(
78
-                    $opt['cookie']['name'] . 'data',
78
+                    $opt['cookie']['name'].'data',
79 79
                     base64_encode(serialize($this->values)),
80 80
                     time() + 31536000,
81 81
                     $opt['cookie']['path'],
Please login to merge, or discard this patch.
htdocs/lib/clicompatbase.inc.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * $dblink
21 21
  ****************************************************************************/
22 22
 
23
-require_once __DIR__ . '/../vendor/autoload.php';
23
+require_once __DIR__.'/../vendor/autoload.php';
24 24
 
25 25
 global $interface_output, $dblink_slave;
26 26
 if (!isset($interface_output)) {
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
 define('regex_statpic_text', '^[a-zA-Z0-9\.\-_ @äüöÄÜÖß=)(\/\\\&*\$+~#!§%;,-?:\[\]{}¹²³\'\"`\|µ°]{0,29}$');
50 50
 
51 51
 //load default webserver-settings and common includes
52
-require_once $opt['rootpath'] . 'lib/consts.inc.php';
53
-require_once $opt['rootpath'] . 'lib/settings.inc.php';
54
-require_once $opt['rootpath'] . 'lib2/errorhandler.inc.php';
52
+require_once $opt['rootpath'].'lib/consts.inc.php';
53
+require_once $opt['rootpath'].'lib/settings.inc.php';
54
+require_once $opt['rootpath'].'lib2/errorhandler.inc.php';
55 55
 
56 56
 // check for banned UAs
57 57
 $useragent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 }
75 75
 
76 76
 // prepare EMail-From
77
-$emailheaders = 'From: "' . $emailaddr . '" <' . $emailaddr . '>';
77
+$emailheaders = 'From: "'.$emailaddr.'" <'.$emailaddr.'>';
78 78
 
79 79
 function logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details)
80 80
 {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     while ($nCurPos < mb_strlen($str)) {
115 115
         $nNextSep = mb_strlen($str);
116
-        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos ++) {
116
+        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos++) {
117 117
             $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos);
118 118
             if ($nThisPos !== false) {
119 119
                 if ($nNextSep > $nThisPos) {
@@ -189,12 +189,12 @@  discard block
 block discarded – undo
189 189
 
190 190
 function getSysConfig($name, $default)
191 191
 {
192
-    return sqlValue('SELECT `value` FROM `sysconfig` WHERE `name`=\'' . sql_escape($name) . '\'', $default);
192
+    return sqlValue('SELECT `value` FROM `sysconfig` WHERE `name`=\''.sql_escape($name).'\'', $default);
193 193
 }
194 194
 
195 195
 function setSysConfig($name, $value)
196 196
 {
197
-    if (sqlValue('SELECT COUNT(*) FROM sysconfig WHERE name=\'' . sql_escape($name) . '\'', 0) == 1) {
197
+    if (sqlValue('SELECT COUNT(*) FROM sysconfig WHERE name=\''.sql_escape($name).'\'', 0) == 1) {
198 198
         sql(
199 199
             "UPDATE `sysconfig` SET `value`='&1' WHERE `name`='&2' LIMIT 1",
200 200
             $value,
@@ -294,10 +294,10 @@  discard block
 block discarded – undo
294 294
         // muss dieses & ersetzt werden, oder ist es escaped?
295 295
         $escapesCount = 0;
296 296
         while ((($nextarg - $escapesCount - 1) > 0) && (mb_substr($sql, $nextarg - $escapesCount - 1, 1) == '\\')) {
297
-            $escapesCount ++;
297
+            $escapesCount++;
298 298
         }
299 299
         if (($escapesCount % 2) == 1) {
300
-            $nextarg ++;
300
+            $nextarg++;
301 301
         } else {
302 302
             $nextchar = mb_substr($sql, $nextarg + 1, 1);
303 303
             if (is_numeric($nextchar)) {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                 while (mb_ereg_match('^[0-9]{1}', $nextchar) == 1) {
309 309
                     $arg .= $nextchar;
310 310
 
311
-                    $arglength ++;
311
+                    $arglength++;
312 312
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
313 313
                 }
314 314
 
@@ -349,13 +349,13 @@  discard block
 block discarded – undo
349 349
                         // Anführungszeichen weg machen und NULL einsetzen
350 350
                         $filtered_sql = mb_substr($filtered_sql, 0, mb_strlen($filtered_sql) - 1);
351 351
                         $filtered_sql .= 'NULL';
352
-                        $sqlpos ++;
352
+                        $sqlpos++;
353 353
                     } else {
354 354
                         $filtered_sql .= 'NULL';
355 355
                     }
356 356
                 }
357 357
 
358
-                $sqlpos ++;
358
+                $sqlpos++;
359 359
             } else {
360 360
                 $arglength = 0;
361 361
                 $arg = '';
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
                 while (mb_ereg_match('^[a-zA-Z0-9]{1}', $nextchar) == 1) {
365 365
                     $arg .= $nextchar;
366 366
 
367
-                    $arglength ++;
367
+                    $arglength++;
368 368
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
369 369
                 }
370 370
 
@@ -396,12 +396,12 @@  discard block
 block discarded – undo
396 396
                     $nextarg - $escapesCount - 1,
397 397
                     1
398 398
                 ) == '\\')) {
399
-            $escapesCount ++;
399
+            $escapesCount++;
400 400
         }
401 401
         if (($escapesCount % 2) == 0) {
402 402
             // \& ersetzen durch &
403
-            $filtered_sql = mb_substr($filtered_sql, 0, $nextarg) . '&' . mb_substr($filtered_sql, $nextarg + 2);
404
-            $nextarg --;
403
+            $filtered_sql = mb_substr($filtered_sql, 0, $nextarg).'&'.mb_substr($filtered_sql, $nextarg + 2);
404
+            $nextarg--;
405 405
         }
406 406
 
407 407
         $nextarg = mb_strpos($filtered_sql, '\&', $nextarg + 2);
@@ -418,14 +418,14 @@  discard block
 block discarded – undo
418 418
     */
419 419
 
420 420
     if (isset($sql_debug) && ($sql_debug == true)) {
421
-        require_once $opt['rootpath'] . 'lib/sqldebugger.inc.php';
421
+        require_once $opt['rootpath'].'lib/sqldebugger.inc.php';
422 422
         $result = sqldbg_execute($filtered_sql, $bSlave);
423 423
         if ($result === false) {
424 424
             sql_error();
425 425
         }
426 426
     } else {
427 427
         // Zeitmessung für die Ausführung
428
-        require_once $opt['rootpath'] . 'lib/bench.inc.php';
428
+        require_once $opt['rootpath'].'lib/bench.inc.php';
429 429
         $cSqlExecution = new Cbench;
430 430
         $cSqlExecution->start();
431 431
 
@@ -437,8 +437,8 @@  discard block
 block discarded – undo
437 437
         $cSqlExecution->stop();
438 438
 
439 439
         if ($sql_warntime > 0 && $cSqlExecution->diff() > $sql_warntime) {
440
-            $ua = isset($_SERVER['HTTP_USER_AGENT']) ? "\r\n" . $_SERVER['HTTP_USER_AGENT'] : "";
441
-            sql_warn("execution took " . $cSqlExecution->diff() . " seconds" . $ua);
440
+            $ua = isset($_SERVER['HTTP_USER_AGENT']) ? "\r\n".$_SERVER['HTTP_USER_AGENT'] : "";
441
+            sql_warn("execution took ".$cSqlExecution->diff()." seconds".$ua);
442 442
         }
443 443
     }
444 444
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
     global $db_error;
474 474
 
475 475
     $db_error += 1;
476
-    $msql_error = mysql_errno() . ": " . mysql_error();
476
+    $msql_error = mysql_errno().": ".mysql_error();
477 477
     if ($db_error > 1) {
478 478
         $msql_error .= "\n(** error recursion **)";
479 479
     }
@@ -484,13 +484,13 @@  discard block
 block discarded – undo
484 484
         $email_content .= "\n--------------------\n";
485 485
         $email_content .= print_r(debug_backtrace(), true);
486 486
         if (admin_errormail($sql_errormail, 'sql_error', $email_content, $emailheaders)) {
487
-            mb_send_mail($sql_errormail, 'sql_error: ' . $absolute_server_URI, $email_content, $emailheaders);
487
+            mb_send_mail($sql_errormail, 'sql_error: '.$absolute_server_URI, $email_content, $emailheaders);
488 488
         }
489 489
     }
490 490
 
491 491
     if ($interface_output == 'html') {
492 492
         // display errorpage
493
-        $errmsg = $dberrormsg . ($debug_page ? "<br />" . $msql_error : "");
493
+        $errmsg = $dberrormsg.($debug_page ? "<br />".$msql_error : "");
494 494
         if ($db_error <= 1) {
495 495
             tpl_errorMsg('sql_error', $errmsg);
496 496
         } else {
@@ -504,12 +504,12 @@  discard block
 block discarded – undo
504 504
         exit;
505 505
     } elseif ($interface_output == 'plain') {
506 506
         echo "\n";
507
-        echo 'sql_error' . "\n";
507
+        echo 'sql_error'."\n";
508 508
         if ($debug_page) {
509
-            echo $msql_error . "\n";
509
+            echo $msql_error."\n";
510 510
         }
511
-        echo '---------' . "\n";
512
-        echo print_r(debug_backtrace(), true) . "\n";
511
+        echo '---------'."\n";
512
+        echo print_r(debug_backtrace(), true)."\n";
513 513
         exit;
514 514
     }
515 515
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
     $email_content .= print_r(debug_backtrace(), true);
528 528
 
529 529
     if (admin_errormail($sql_errormail, 'sql_warn', $email_content, $emailheaders)) {
530
-        $sendMail = @mb_send_mail($sql_errormail, 'sql_warn: ' . $absolute_server_URI, $email_content, $emailheaders);
530
+        $sendMail = @mb_send_mail($sql_errormail, 'sql_warn: '.$absolute_server_URI, $email_content, $emailheaders);
531 531
         if ($sendMail === false) {
532 532
             throw new \RuntimeException('the E-Mail can not be send.');
533 533
         }
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
     }
631 631
 
632 632
     if ($dblink != false) {
633
-        mysql_query("SET NAMES '" . mysql_real_escape_string($opt['charset']['mysql'], $dblink) . "'", $dblink);
633
+        mysql_query("SET NAMES '".mysql_real_escape_string($opt['charset']['mysql'], $dblink)."'", $dblink);
634 634
 
635 635
         //database connection established ... set the used database
636 636
         if (@mysql_select_db($dbname, $dblink) == false) {
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
     $nMaxTimeDiff = $opt['db']['slave']['max_behind'];
667 667
     if ($usr !== false) {
668 668
         $nMaxTimeDiff = sqlValue(
669
-            "SELECT TIMESTAMP(NOW())-TIMESTAMP(`datExclude`) FROM `sys_repl_exclude` WHERE `user_id`='" . ($usr['userid'] + 0) . "'",
669
+            "SELECT TIMESTAMP(NOW())-TIMESTAMP(`datExclude`) FROM `sys_repl_exclude` WHERE `user_id`='".($usr['userid'] + 0)."'",
670 670
             $opt['db']['slave']['max_behind']
671 671
         );
672 672
         if ($nMaxTimeDiff > $opt['db']['slave']['max_behind']) {
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
     }
676 676
 
677 677
     $id = sqlValue(
678
-        "SELECT `id`, `weight`*RAND() AS `w` FROM `sys_repl_slaves` WHERE `active`=1 AND `online`=1 AND (TIMESTAMP(NOW())-TIMESTAMP(`last_check`)+`time_diff`<'" . ($nMaxTimeDiff + 0) . "') ORDER BY `w` DESC LIMIT 1",
678
+        "SELECT `id`, `weight`*RAND() AS `w` FROM `sys_repl_slaves` WHERE `active`=1 AND `online`=1 AND (TIMESTAMP(NOW())-TIMESTAMP(`last_check`)+`time_diff`<'".($nMaxTimeDiff + 0)."') ORDER BY `w` DESC LIMIT 1",
679 679
         - 1
680 680
     );
681 681
 
@@ -747,9 +747,9 @@  discard block
 block discarded – undo
747 747
             $protocol = 'http';
748 748
         }
749 749
 
750
-        $site_url = $protocol . strstr($opt['domain'][$domain]['url'], '://');
750
+        $site_url = $protocol.strstr($opt['domain'][$domain]['url'], '://');
751 751
         if (isset($opt['domain'][$domain]['shortlink_domain']) && $opt['domain'][$domain]['shortlink_domain']) {
752
-            $shortlink_url = $protocol . '://' . $opt['domain'][$domain]['shortlink_domain'] . '/';
752
+            $shortlink_url = $protocol.'://'.$opt['domain'][$domain]['shortlink_domain'].'/';
753 753
         } else {
754 754
             $shortlink_url = false;
755 755
         }
@@ -769,10 +769,10 @@  discard block
 block discarded – undo
769 769
         $language = $opt['template']['default']['locale'];
770 770
     }
771 771
     $language = strtolower($language);
772
-    if (!file_exists($rootpath . '/lang/de/ocstyle/email/' . $language . '/' . $filename . '.email')) {
772
+    if (!file_exists($rootpath.'/lang/de/ocstyle/email/'.$language.'/'.$filename.'.email')) {
773 773
         $language = 'en';
774 774
     }
775
-    $mailtext = read_file($rootpath . '/lang/de/ocstyle/email/' . $language . '/' . $filename . '.email');
775
+    $mailtext = read_file($rootpath.'/lang/de/ocstyle/email/'.$language.'/'.$filename.'.email');
776 776
 
777 777
     $urls = get_site_urls($domain);
778 778
     $mailtext = mb_ereg_replace("{site_url}", $urls['site_url'], $mailtext);
Please login to merge, or discard this patch.
htdocs/lib/consts.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  * named consts
15 15
  ****************************************************************************/
16 16
 
17
-require_once __DIR__ . '/consts-common.inc.php';
17
+require_once __DIR__.'/consts-common.inc.php';
18 18
 
19 19
 // for cachelists
20 20
 define('cachelist_type_ignore', 1);
Please login to merge, or discard this patch.
htdocs/lib/common.inc.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
 if (!isset($rootpath)) {
36 36
     $rootpath = './';
37 37
 }
38
-require_once $rootpath . 'lib/clicompatbase.inc.php';
38
+require_once $rootpath.'lib/clicompatbase.inc.php';
39 39
 
40 40
 // enforce http or https?
41 41
 if (isset($opt['gui']) && $opt['gui'] == GUI_HTML) {
42 42
     if ($opt['page']['https']['mode'] == HTTPS_DISABLED) {
43 43
         if ($opt['page']['https']['active']) {
44
-            header('Location: http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
44
+            header('Location: http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
45 45
         }
46 46
         $opt['page']['force_https_login'] = false;
47 47
     } else {
48 48
         if ($opt['page']['https']['mode'] == HTTPS_ENFORCED) {
49 49
             if (!$opt['page']['https']['active']) {
50
-                header('Location: https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
50
+                header('Location: https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
51 51
             }
52 52
             $opt['page']['force_https_login'] = true;
53 53
         }
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
 load_domain_settings();
59 59
 
60 60
 // load HTML specific includes
61
-require_once $rootpath . 'lib/cookie.class.php';
61
+require_once $rootpath.'lib/cookie.class.php';
62 62
 
63 63
 //site in service?
64 64
 if ($site_in_service == false) {
65 65
     header('Content-type: text/html; charset=utf-8');
66
-    $page_content = read_file($rootpath . 'html/outofservice.tpl.php');
66
+    $page_content = read_file($rootpath.'html/outofservice.tpl.php');
67 67
     die($page_content);
68 68
 }
69 69
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 }
85 85
 
86 86
 //are there files for this language?
87
-if (!file_exists($rootpath . 'lang/' . $lang . '/')) {
87
+if (!file_exists($rootpath.'lang/'.$lang.'/')) {
88 88
     die('Critical Error: The specified language does not exist!');
89 89
 }
90 90
 
@@ -97,22 +97,22 @@  discard block
 block discarded – undo
97 97
 }
98 98
 
99 99
 //does the style exist?
100
-if (!file_exists($rootpath . 'lang/' . $lang . '/' . $style . '/')) {
100
+if (!file_exists($rootpath.'lang/'.$lang.'/'.$style.'/')) {
101 101
     $style = 'ocstyle';
102 102
 }
103 103
 
104
-if (!file_exists($rootpath . 'lang/' . $lang . '/' . $style . '/')) {
104
+if (!file_exists($rootpath.'lang/'.$lang.'/'.$style.'/')) {
105 105
     die('Critical Error: The specified style does not exist!');
106 106
 }
107 107
 
108 108
 //set up the language path
109 109
 if (!isset($langpath)) {
110
-    $langpath = $rootpath . 'lang/' . $lang;
110
+    $langpath = $rootpath.'lang/'.$lang;
111 111
 }
112 112
 
113 113
 //set up the style path
114 114
 if (!isset($stylepath)) {
115
-    $stylepath = $langpath . '/' . $style;
115
+    $stylepath = $langpath.'/'.$style;
116 116
 }
117 117
 
118 118
 //load gettext translation
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
 //open a databse connection
122 122
 db_connect();
123 123
 
124
-require $opt['rootpath'] . 'lib/auth.inc.php';
125
-require_once $opt['rootpath'] . 'lib2/translate.class.php';
124
+require $opt['rootpath'].'lib/auth.inc.php';
125
+require_once $opt['rootpath'].'lib2/translate.class.php';
126 126
 
127 127
 //load language specific strings
128
-require_once $langpath . '/expressions.inc.php';
128
+require_once $langpath.'/expressions.inc.php';
129 129
 
130 130
 //set up the defaults for the main template
131
-require_once $stylepath . '/varset.inc.php';
131
+require_once $stylepath.'/varset.inc.php';
132 132
 
133 133
 if ($dblink === false) {
134 134
     //error while connecting to the database
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         tpl_set_var('loginbox', $sLoggedOut);
157 157
         tpl_set_var(
158 158
             'login_url',
159
-            ($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '') . 'login.php'
159
+            ($opt['page']['https']['force_login'] ? $opt['page']['absolute_https_url'] : '').'login.php'
160 160
         );
161 161
     } else {
162 162
         //user logged in
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 $ocpropping = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], "Ocprop/") !== false;
171 171
 
172 172
 // zeitmessung
173
-require_once $rootpath . 'lib/bench.inc.php';
173
+require_once $rootpath.'lib/bench.inc.php';
174 174
 $bScriptExecution = new Cbench;
175 175
 $bScriptExecution->start();
176 176
 
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
     // country dropdown
335 335
     global $tpl_usercountries;
336 336
 
337
-    tpl_set_var('screen_css_time', filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_screen.css"));
337
+    tpl_set_var('screen_css_time', filemtime($opt['rootpath']."resource2/".$style."/css/style_screen.css"));
338 338
     tpl_set_var(
339 339
         'screen_msie_css_time',
340
-        filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_screen_msie.css")
340
+        filemtime($opt['rootpath']."resource2/".$style."/css/style_screen_msie.css")
341 341
     );
342
-    tpl_set_var('print_css_time', filemtime($opt['rootpath'] . "resource2/" . $style . "/css/style_print.css"));
342
+    tpl_set_var('print_css_time', filemtime($opt['rootpath']."resource2/".$style."/css/style_print.css"));
343 343
 
344 344
     if (isset($bScriptExecution)) {
345 345
         $bScriptExecution->Stop();
@@ -376,8 +376,8 @@  discard block
 block discarded – undo
376 376
         $ltext = mb_ereg_replace('%1', $lurl, $ltext);
377 377
         $ltext = mb_ereg_replace('{site}', $opt['page']['sitename'], $ltext);
378 378
 
379
-        $ld = '<p class="sidebar-maintitle">' . $translate->t('Datalicense', '', '', 0) . '</p>' .
380
-            '<div style="margin:20px 0 16px 0; width:100%; text-align:center;">' . $ltext . '</div>';
379
+        $ld = '<p class="sidebar-maintitle">'.$translate->t('Datalicense', '', '', 0).'</p>'.
380
+            '<div style="margin:20px 0 16px 0; width:100%; text-align:center;">'.$ltext.'</div>';
381 381
         tpl_set_var('license_disclaimer', $ld);
382 382
     } else {
383 383
         tpl_set_var('license_disclaimer', '');
@@ -425,25 +425,25 @@  discard block
 block discarded – undo
425 425
     sql_free_result($rsUserCountries);
426 426
 
427 427
     //include language specific expressions, so that they are available in the template code
428
-    include $langpath . '/expressions.inc.php';
428
+    include $langpath.'/expressions.inc.php';
429 429
 
430 430
     //load main template
431 431
     tpl_set_var('backgroundimage', '<div id="bg1">&nbsp;</div><div id="bg2">&nbsp;</div>');
432 432
     tpl_set_var('bodystyle', '');
433 433
 
434 434
     if (isset($_REQUEST['print']) && $_REQUEST['print'] == 'y') {
435
-        $sCode = read_file($stylepath . '/main_print.tpl.php');
435
+        $sCode = read_file($stylepath.'/main_print.tpl.php');
436 436
     } else {
437 437
         if (isset($_REQUEST['popup']) && $_REQUEST['popup'] == 'y') {
438
-            $sCode = read_file($stylepath . '/popup.tpl.php');
438
+            $sCode = read_file($stylepath.'/popup.tpl.php');
439 439
         } else {
440
-            $sCode = read_file($stylepath . '/main.tpl.php');
440
+            $sCode = read_file($stylepath.'/main.tpl.php');
441 441
         }
442 442
     }
443
-    $sCode = '?>' . $sCode;
443
+    $sCode = '?>'.$sCode;
444 444
 
445 445
     //does template exist?
446
-    if (!file_exists($stylepath . '/' . $tplname . '.tpl.php')) {
446
+    if (!file_exists($stylepath.'/'.$tplname.'.tpl.php')) {
447 447
         //set up the error template
448 448
         $error = true;
449 449
         tpl_set_var('error_msg', htmlspecialchars($error_pagenotexist, ENT_COMPAT, 'UTF-8'));
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
     }
453 453
 
454 454
     //read the template
455
-    $sTemplate = read_file($stylepath . '/' . $tplname . '.tpl.php');
455
+    $sTemplate = read_file($stylepath.'/'.$tplname.'.tpl.php');
456 456
     $sCode = mb_ereg_replace('{template}', $sTemplate, $sCode);
457 457
 
458 458
     //process translations
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
     // Date in the past
493 493
     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
494 494
     // always modified
495
-    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
495
+    header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
496 496
 }
497 497
 
498 498
 //redirect to another site to display, i.e. to view a cache after logging
@@ -504,9 +504,9 @@  discard block
 block discarded – undo
504 504
     http_write_no_cache();
505 505
 
506 506
     if (!preg_match('/^https?:/i', $page)) {
507
-        header("Location: " . $absolute_server_URI . $page);
507
+        header("Location: ".$absolute_server_URI.$page);
508 508
     } else {
509
-        header("Location: " . $page);
509
+        header("Location: ".$page);
510 510
     }
511 511
 
512 512
     exit;
@@ -522,17 +522,17 @@  discard block
 block discarded – undo
522 522
     if (is_array($vars)) {
523 523
         foreach ($vars as $varname => $varvalue) {
524 524
             if ($no_eval_vars[$varname] == false) {
525
-                $str = mb_ereg_replace('{' . $varname . '}', $varvalue, $str);
525
+                $str = mb_ereg_replace('{'.$varname.'}', $varvalue, $str);
526 526
             } else {
527
-                $replave_var_name = 'tpl_replace_var_' . $varname;
527
+                $replave_var_name = 'tpl_replace_var_'.$varname;
528 528
 
529 529
                 global $$replave_var_name;
530 530
                 $$replave_var_name = $varvalue;
531 531
 
532 532
                 //replace using php-echo
533 533
                 $str = mb_ereg_replace(
534
-                    '{' . $varname . '}',
535
-                    '<?php global $' . $replave_var_name . '; echo $tpl_replace_var_' . $varname . '; ?>',
534
+                    '{'.$varname.'}',
535
+                    '<?php global $'.$replave_var_name.'; echo $tpl_replace_var_'.$varname.'; ?>',
536 536
                     $str
537 537
                 );
538 538
             }
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
     }
566 566
     $opt['template']['locale'] = $locale;
567 567
 
568
-    bindtextdomain('messages', $rootpath . '/cache2/translate');
568
+    bindtextdomain('messages', $rootpath.'/cache2/translate');
569 569
     set_php_locale();
570 570
     textdomain('messages');
571 571
 }
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     $sResultCode = '';
604 604
     $nCurrentPos = 0;
605 605
     while ($nCurrentPos < mb_strlen($sCode)) {
606
-        $nStartOf = mb_strpos($sCode, '{' . 't}', $nCurrentPos);
606
+        $nStartOf = mb_strpos($sCode, '{'.'t}', $nCurrentPos);
607 607
         if ($nStartOf === false) {
608 608
             $sResultCode .= mb_substr($sCode, $nCurrentPos, mb_strlen($sCode) - $nCurrentPos);
609 609
             $nCurrentPos = mb_strlen($sCode);
@@ -633,8 +633,8 @@  discard block
 block discarded – undo
633 633
 
634 634
     $str = $translate->t($str, '', basename(__FILE__), __LINE__);
635 635
     $args = func_get_args();
636
-    for ($nIndex = count($args) - 1; $nIndex > 0; $nIndex --) {
637
-        $str = str_replace('%' . $nIndex, $args[$nIndex], $str);
636
+    for ($nIndex = count($args) - 1; $nIndex > 0; $nIndex--) {
637
+        $str = str_replace('%'.$nIndex, $args[$nIndex], $str);
638 638
     }
639 639
 
640 640
     return $str;
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
     // user specified a country?
668 668
     if (isset($usr) && ($usr !== false)) {
669
-        $sCountry = sqlValue("SELECT `country` FROM `user` WHERE `user_id`='" . ($usr['userid'] + 0) . "'", null);
669
+        $sCountry = sqlValue("SELECT `country` FROM `user` WHERE `user_id`='".($usr['userid'] + 0)."'", null);
670 670
         if ($sCountry != null) {
671 671
             return $sCountry;
672 672
         }
@@ -732,14 +732,14 @@  discard block
 block discarded – undo
732 732
     mysql_free_result($rs);
733 733
 
734 734
     $imgtitle = $translate->t('Instructions', '', basename(__FILE__), __LINE__);
735
-    $imgtitle = "alt='" . $imgtitle . "' title='" . $imgtitle . "'";
735
+    $imgtitle = "alt='".$imgtitle."' title='".$imgtitle."'";
736 736
 
737 737
     if (substr($helppage, 0, 1) == "!") {
738
-        return "<a class='nooutline' href='" . substr($helppage, 1) . "' " . $imgtitle . " target='_blank'>";
738
+        return "<a class='nooutline' href='".substr($helppage, 1)."' ".$imgtitle." target='_blank'>";
739 739
     } else {
740 740
         if ($helppage != "" && isset($opt['locale'][$help_locale]['helpwiki'])) {
741
-            return "<a class='nooutline' href='" . $opt['locale'][$help_locale]['helpwiki'] .
742
-            str_replace(' ', '_', $helppage) . "' " . $imgtitle . " target='_blank'>";
741
+            return "<a class='nooutline' href='".$opt['locale'][$help_locale]['helpwiki'].
742
+            str_replace(' ', '_', $helppage)."' ".$imgtitle." target='_blank'>";
743 743
         }
744 744
     }
745 745
 
Please login to merge, or discard this patch.