Completed
Push — master ( 598c1e...182b8c )
by Thomas
15:55 queued 08:34
created
htdocs/mylists.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,15 +5,15 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
9
-require_once __DIR__ . '/lib2/edithelper.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9
+require_once __DIR__.'/lib2/edithelper.inc.php';
10 10
 
11 11
 $tpl->name = 'mylists';
12 12
 $tpl->menuitem = MNU_MYPROFILE_LISTS;
13 13
 
14 14
 $login->verify();
15 15
 if ($login->userid == 0) {
16
-    $tpl->redirect('login.php?target=' . urlencode($tpl->target));
16
+    $tpl->redirect('login.php?target='.urlencode($tpl->target));
17 17
 }
18 18
 $user = new user($login->userid);
19 19
 
@@ -152,14 +152,14 @@  discard block
 block discarded – undo
152 152
 
153 153
 // redirect to list search output after editing a list from the search output page
154 154
 if ($fromsearch && !$switchDescMode && !$name_error && isset($_REQUEST['listid'])) {
155
-    $iwp = ($invalid_waypoints ? '&invalidwp=' . urlencode($invalid_waypoints) : '');
156
-    $tpl->redirect('cachelist.php?id=' . ($_REQUEST['listid'] + 0) . $iwp);
155
+    $iwp = ($invalid_waypoints ? '&invalidwp='.urlencode($invalid_waypoints) : '');
156
+    $tpl->redirect('cachelist.php?id='.($_REQUEST['listid'] + 0).$iwp);
157 157
 }
158 158
 
159 159
 // prepare editor and editing
160 160
 if ($descMode == 3) {
161 161
     $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js');
162
-    $tpl->add_header_javascript('resource2/tinymce/config/list.js.php?lang=' . strtolower($opt['template']['locale']));
162
+    $tpl->add_header_javascript('resource2/tinymce/config/list.js.php?lang='.strtolower($opt['template']['locale']));
163 163
 }
164 164
 $tpl->add_header_javascript(editorJsPath());
165 165
 if ($edit_list) {
Please login to merge, or discard this patch.
htdocs/lib2/cookie.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
             if (isset($_REQUEST['SESSION']) && $_REQUEST['SESSION'] != '') {
25 25
                 $this->init_session();
26 26
             }
27
-        } elseif (isset($_COOKIE[$opt['session']['cookiename'] . 'data'])) {
27
+        } elseif (isset($_COOKIE[$opt['session']['cookiename'].'data'])) {
28 28
             //get the cookievars-array
29
-            $decoded = base64_decode($_COOKIE[$opt['session']['cookiename'] . 'data']);
29
+            $decoded = base64_decode($_COOKIE[$opt['session']['cookiename'].'data']);
30 30
 
31 31
             if ($decoded !== false) {
32 32
                 $this->values = @unserialize($decoded);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
             if ($opt['session']['check_referer']) {
53 53
                 if (isset($_SERVER['REFERER'])) {
54
-                    if (strtolower(substr('http' + strstr($_SERVER['REFERER'], '://'), 0, strlen($opt['page']['absolute_http_url']))) != strtolower($opt['page']['absolute_http_url'])) {
54
+                    if (strtolower(substr('http' +strstr($_SERVER['REFERER'], '://'), 0, strlen($opt['page']['absolute_http_url']))) != strtolower($opt['page']['absolute_http_url'])) {
55 55
                         $this->createNewSession();
56 56
                     }
57 57
                 }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             if ($this->changed == true) {
169 169
                 if (count($this->values) == 0) {
170 170
                     setcookie(
171
-                        $opt['session']['cookiename'] . 'data',
171
+                        $opt['session']['cookiename'].'data',
172 172
                         false,
173 173
                         time() + 31536000,
174 174
                         $opt['session']['path'],
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     );
178 178
                 } else {
179 179
                     setcookie(
180
-                        $opt['session']['cookiename'] . 'data',
180
+                        $opt['session']['cookiename'].'data',
181 181
                         base64_encode(serialize($this->values)),
182 182
                         time() + 31536000,
183 183
                         $opt['session']['path'],
Please login to merge, or discard this patch.
htdocs/lib2/charset.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 
11 11
 // replacement table for Unicode 0x100 to 0x1FF
12
-$utf_xlatin = "A a A a A a C c C c C c C c D d D d E e E e E e E e E e G g G g " .
13
-    "G g G g H h H h I i I i I i I i I i IJijJ j K k K L l L l L l L " .
14
-    "l L l N n N n N n n n n O o O o Ö ö OEoeR r R r R r S s S s S s " .
12
+$utf_xlatin = "A a A a A a C c C c C c C c D d D d E e E e E e E e E e G g G g ".
13
+    "G g G g H h H h I i I i I i I i I i IJijJ j K k K L l L l L l L ".
14
+    "l L l N n N n N n n n n O o O o Ö ö OEoeR r R r R r S s S s S s ".
15 15
     "S s T t T t T t U u U u U u U u Ü ü U u W w Y y Y Z z Z z Z z   ";
16 16
 
17 17
 // replacement table for Unicode 0x2000 to 0x203F
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     $result = "";
29 29
 
30 30
     while ($pos < strlen($s)) {
31
-        $c1 = ord($s[$pos ++]);
31
+        $c1 = ord($s[$pos++]);
32 32
         if ($c1 < 0xC0) {
33 33
             $result .= chr($c1);
34 34
         } elseif ($pos < strlen($s)) {
35
-            $c2 = ord($s[$pos ++]);
35
+            $c2 = ord($s[$pos++]);
36 36
             if ($c1 < 0xE0) {
37 37
                 $code = 0x40 * ($c1 & 0x1F) + ($c2 & 0x3F);
38 38
                 if ($code < 0x100) {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                     $result .= "?";
47 47
                 }
48 48
             } elseif ($pos < strlen($s)) {
49
-                $c3 = ord($s[$pos ++]);
49
+                $c3 = ord($s[$pos++]);
50 50
                 $code = 0x1000 * ($c1 & 0x0F) + 0x40 * ($c2 & 0x3F) + ($c3 & 0x3F);
51 51
                 switch ($code) {
52 52
                     case 0x2026:
Please login to merge, or discard this patch.
htdocs/lib2/const.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  *  Constant definitions
8 8
  ***************************************************************************/
9 9
 
10
-require_once __DIR__ . '/../lib/consts-common.inc.php';
10
+require_once __DIR__.'/../lib/consts-common.inc.php';
11 11
 
12 12
 define('DEBUG_NO', 0);
13 13
 define('DEBUG_DEVELOPER', 1);
Please login to merge, or discard this patch.
htdocs/lib2/translationHandler.class.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -32,20 +32,20 @@  discard block
 block discarded – undo
32 32
             return;
33 33
         }
34 34
 
35
-        if (!is_dir($opt['rootpath'] . 'cache2/translate/' . $language_lower)) {
36
-            mkdir($opt['rootpath'] . 'cache2/translate/' . $language_lower);
35
+        if (!is_dir($opt['rootpath'].'cache2/translate/'.$language_lower)) {
36
+            mkdir($opt['rootpath'].'cache2/translate/'.$language_lower);
37 37
         }
38
-        if (!is_dir($opt['rootpath'] . 'cache2/translate/' . $language_lower . '/LC_MESSAGES')) {
39
-            mkdir($opt['rootpath'] . 'cache2/translate/' . $language_lower . '/LC_MESSAGES');
38
+        if (!is_dir($opt['rootpath'].'cache2/translate/'.$language_lower.'/LC_MESSAGES')) {
39
+            mkdir($opt['rootpath'].'cache2/translate/'.$language_lower.'/LC_MESSAGES');
40 40
         }
41 41
 
42
-        $f = fopen($opt['rootpath'] . 'cache2/translate/' . $language_lower . '/LC_MESSAGES/messages.po', 'w');
42
+        $f = fopen($opt['rootpath'].'cache2/translate/'.$language_lower.'/LC_MESSAGES/messages.po', 'w');
43 43
 
44
-        fwrite($f, 'msgid ""' . "\n");
45
-        fwrite($f, 'msgstr ""' . "\n");
46
-        fwrite($f, '"MIME-Version: 1.0\n"' . "\n");
47
-        fwrite($f, '"Content-Type: text/plain; charset=UTF-8\n"' . "\n");
48
-        fwrite($f, '"Content-Transfer-Encoding: 8bit\n"' . "\n");
44
+        fwrite($f, 'msgid ""'."\n");
45
+        fwrite($f, 'msgstr ""'."\n");
46
+        fwrite($f, '"MIME-Version: 1.0\n"'."\n");
47
+        fwrite($f, '"Content-Type: text/plain; charset=UTF-8\n"'."\n");
48
+        fwrite($f, '"Content-Transfer-Encoding: 8bit\n"'."\n");
49 49
         fwrite($f, "\n");
50 50
 
51 51
         // English texts in sys_trans_text are more up-to-date than the original translation
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
         );
67 67
 
68 68
         $variables = array();
69
-        $this->loadNodeTextFile($variables, $opt['logic']['node']['id'] . '.txt', $language_lower);
69
+        $this->loadNodeTextFile($variables, $opt['logic']['node']['id'].'.txt', $language_lower);
70 70
         $this->loadNodeTextFile(
71 71
             $variables,
72
-            $opt['logic']['node']['id'] . '-' . $language_lower . '.txt',
72
+            $opt['logic']['node']['id'].'-'.$language_lower.'.txt',
73 73
             $language_lower
74 74
         );
75 75
 
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
             if ($trans !== null && $trans != $r['text']) {
79 79
                 $trans = $this->substitueVariables($variables, $language_lower, $trans);
80 80
 
81
-                fwrite($f, 'msgid "' . $this->escape_text($r['text']) . '"' . "\n");
82
-                fwrite($f, 'msgstr "' . $this->escape_text($trans) . '"' . "\n");
81
+                fwrite($f, 'msgid "'.$this->escape_text($r['text']).'"'."\n");
82
+                fwrite($f, 'msgstr "'.$this->escape_text($trans).'"'."\n");
83 83
                 fwrite($f, "\n");
84 84
             }
85 85
         }
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 
90 90
         try {
91 91
             exec(
92
-                'msgfmt -o ' . escapeshellcmd(
93
-                    $opt['rootpath'] . 'cache2/translate/' . $language_lower . '/LC_MESSAGES/messages.mo'
94
-                ) . ' ' . escapeshellcmd(
95
-                    $opt['rootpath'] . 'cache2/translate/' . $language_lower . '/LC_MESSAGES/messages.po'
92
+                'msgfmt -o '.escapeshellcmd(
93
+                    $opt['rootpath'].'cache2/translate/'.$language_lower.'/LC_MESSAGES/messages.mo'
94
+                ).' '.escapeshellcmd(
95
+                    $opt['rootpath'].'cache2/translate/'.$language_lower.'/LC_MESSAGES/messages.po'
96 96
                 )
97 97
             );
98 98
         } catch (Exception $e) {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             sqlf(
190 190
                 "INSERT IGNORE INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('&1', '&2', 0)",
191 191
                 $lastId,
192
-                'table:' . $table . ';field=' . $fname
192
+                'table:'.$table.';field='.$fname
193 193
             );
194 194
         }
195 195
         sql_free_result($rs);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         // generic load
212 212
         global $opt;
213 213
 
214
-        $filename = $opt['rootpath'] . '/config2/nodetext/' . $file;
214
+        $filename = $opt['rootpath'].'/config2/nodetext/'.$file;
215 215
         if (file_exists($filename)) {
216 216
             $fhandle = fopen($filename, 'r');
217 217
 
Please login to merge, or discard this patch.
htdocs/lib2/translateAccess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require_once __DIR__ . '/logic/const.inc.php';
8
+require_once __DIR__.'/logic/const.inc.php';
9 9
 
10 10
 class translateAccess
11 11
 {
Please login to merge, or discard this patch.
htdocs/lib2/common.inc.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  *  TODO: accept-language des Browser auswerten
11 11
  ***************************************************************************/
12 12
 
13
-require_once __DIR__ . '/../vendor/autoload.php';
13
+require_once __DIR__.'/../vendor/autoload.php';
14 14
 
15 15
 function __autoload($class_name)
16 16
 {
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
         return;
21 21
     }
22 22
 
23
-    $file1 = $opt['rootpath'] . 'lib2/' . $class_name . '.class.php';
24
-    $file2 = $opt['rootpath'] . 'lib2/logic/' . $class_name . '.class.php';
23
+    $file1 = $opt['rootpath'].'lib2/'.$class_name.'.class.php';
24
+    $file2 = $opt['rootpath'].'lib2/logic/'.$class_name.'.class.php';
25 25
     if (file_exists($file1)) {
26 26
         require_once $file1;
27 27
     } elseif (file_exists($file2)) {
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 mb_regex_encoding('UTF-8');
44 44
 
45 45
 // set options
46
-require_once $opt['rootpath'] . 'config2/settings-dist.inc.php';
47
-require_once $opt['rootpath'] . 'config2/settings.inc.php';
48
-require_once $opt['rootpath'] . 'config2/verify-settings.inc.php';
46
+require_once $opt['rootpath'].'config2/settings-dist.inc.php';
47
+require_once $opt['rootpath'].'config2/settings.inc.php';
48
+require_once $opt['rootpath'].'config2/verify-settings.inc.php';
49 49
 
50 50
 foreach ($opt['page']['banned_user_agents'] as $ua) {
51 51
     if (strpos($useragent, $ua) !== false) {
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
     }
70 70
 }
71 71
 
72
-require_once $opt['rootpath'] . 'lib2/errorhandler.inc.php';
72
+require_once $opt['rootpath'].'lib2/errorhandler.inc.php';
73 73
 configure_php();
74 74
 
75
-require $opt['rootpath'] . 'lib2/cookie.class.php';
75
+require $opt['rootpath'].'lib2/cookie.class.php';
76 76
 normalize_settings();
77 77
 set_language();
78 78
 set_usercountry();
@@ -85,30 +85,30 @@  discard block
 block discarded – undo
85 85
         $opt['template']['style'] = $opt['template']['default']['style'];
86 86
     }
87 87
 
88
-    if (!is_dir($opt['rootpath'] . 'templates2/' . $opt['template']['style'])) {
88
+    if (!is_dir($opt['rootpath'].'templates2/'.$opt['template']['style'])) {
89 89
         $opt['template']['style'] = $opt['template']['default']['style'];
90 90
     }
91 91
 } else {
92 92
     $opt['template']['style'] = $opt['template']['default']['style'];
93 93
 }
94
-$opt['stylepath'] = $opt['rootpath'] . 'templates2/' . $opt['template']['style'] . '/';
94
+$opt['stylepath'] = $opt['rootpath'].'templates2/'.$opt['template']['style'].'/';
95 95
 
96 96
 check_useragent();
97 97
 
98 98
 /* setup smarty
99 99
  *
100 100
  */
101
-require $opt['rootpath'] . 'lib2/OcSmarty.class.php';
101
+require $opt['rootpath'].'lib2/OcSmarty.class.php';
102 102
 $tpl = new OcSmarty();
103 103
 
104 104
 // include all we need
105
-require_once $opt['rootpath'] . 'lib2/logic/const.inc.php';
106
-require_once $opt['rootpath'] . 'lib2/error.inc.php';
107
-require_once $opt['rootpath'] . 'lib2/util.inc.php';
108
-require_once $opt['rootpath'] . 'lib2/db.inc.php';
109
-require_once $opt['rootpath'] . 'lib2/login.class.php';
110
-require_once $opt['rootpath'] . 'lib2/menu.class.php';
111
-require_once $opt['rootpath'] . 'lib2/logic/labels.inc.php';
105
+require_once $opt['rootpath'].'lib2/logic/const.inc.php';
106
+require_once $opt['rootpath'].'lib2/error.inc.php';
107
+require_once $opt['rootpath'].'lib2/util.inc.php';
108
+require_once $opt['rootpath'].'lib2/db.inc.php';
109
+require_once $opt['rootpath'].'lib2/login.class.php';
110
+require_once $opt['rootpath'].'lib2/menu.class.php';
111
+require_once $opt['rootpath'].'lib2/logic/labels.inc.php';
112 112
 // require_once $opt['rootpath'] . 'lib2/throttle.inc.php';
113 113
 
114 114
 // apply post configuration
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     $login->userid > 0 &&
124 124
     sql_value("SELECT `email_problems` FROM `user` WHERE `user_id`='&1'", 0, $login->userid) != 0
125 125
 ) {
126
-    header("Location: verifyemail.php?page=" . basename($_SERVER['REQUEST_URI']));
126
+    header("Location: verifyemail.php?page=".basename($_SERVER['REQUEST_URI']));
127 127
     exit;
128 128
 }
129 129
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     }
149 149
 
150 150
     if (isset($opt['logic']['cachemaps']['wmsurl']) && strstr($opt['logic']['cachemaps']['wmsurl'], '://')) {
151
-        $opt['logic']['cachemaps']['wmsurl'] = $opt['page']['protocol'] . strstr(
151
+        $opt['logic']['cachemaps']['wmsurl'] = $opt['page']['protocol'].strstr(
152 152
                 $opt['logic']['cachemaps']['wmsurl'],
153 153
                 '://'
154 154
             );
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         $cookie->set('locale', $opt['template']['locale'], $opt['template']['default']['locale']);
237 237
     }
238 238
 
239
-    bindtextdomain('messages', $opt['rootpath'] . 'cache2/translate');
239
+    bindtextdomain('messages', $opt['rootpath'].'cache2/translate');
240 240
     set_php_locale();
241 241
     textdomain('messages');
242 242
 }
@@ -277,13 +277,13 @@  discard block
 block discarded – undo
277 277
     if (strtolower(substr($url, 0, strlen($opt['page']['absolute_http_url']))) == $opt['page']['absolute_http_url']
278 278
         && $opt['page']['https']['active']
279 279
     ) {
280
-        return 'https' . strstr($url, '://');
280
+        return 'https'.strstr($url, '://');
281 281
     } elseif (strtolower(
282 282
             substr($url, 0, strlen($opt['page']['absolute_https_url']))
283 283
         ) == $opt['page']['absolute_https_url']
284 284
         && !$opt['page']['https']['active']
285 285
     ) {
286
-        return 'http' . strstr($url, '://');
286
+        return 'http'.strstr($url, '://');
287 287
     } else {
288 288
         return $url;
289 289
     }
Please login to merge, or discard this patch.
htdocs/lib2/smiley.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@
 block discarded – undo
90 90
 
91 91
     $smiley_a = array();
92 92
     for ($n = 0; $n < count($smiley['file']); ++ $n) {
93
-        $smiley['image'][$n] = '<img src="' . $opt['template']['smiley'] . $smiley['file'][$n] . '" alt="' . $smiley['text'][$n] . '" border="0" width="18px" height="18px" />';
94
-        $smiley['spaced_image'][$n] = ' ' . $smiley['image'][$n] . ' ';
93
+        $smiley['image'][$n] = '<img src="'.$opt['template']['smiley'].$smiley['file'][$n].'" alt="'.$smiley['text'][$n].'" border="0" width="18px" height="18px" />';
94
+        $smiley['spaced_image'][$n] = ' '.$smiley['image'][$n].' ';
95 95
         $smiley_a[] = [
96 96
             'text' => $smiley['text'][$n],
97 97
             'file' => $smiley['file'][$n],
Please login to merge, or discard this patch.
htdocs/lib2/search/search.kml.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     $kmlLine =
22 22
         '
23 23
 <Placemark>
24
-  <description><![CDATA[' . $t_by . ' {username}<br><br><a href="' . $opt['page']['default_absolute_url'] . 'viewcache.php?cacheid={cacheid}">' . $t_showdesc . '</a><br>&nbsp;<br><table cellspacing="0" cellpadding="0" border="0"><tr><td>{typeimgurl} </td><td>' . $t_type . ' {type}<br>' . $t_size . ' {size}</td></tr><tr><td colspan="2">' . $t_difficulty . '<br>' . $t_terrain . '</td></tr></table>]]></description>
24
+  <description><![CDATA[' . $t_by.' {username}<br><br><a href="'.$opt['page']['default_absolute_url'].'viewcache.php?cacheid={cacheid}">'.$t_showdesc.'</a><br>&nbsp;<br><table cellspacing="0" cellpadding="0" border="0"><tr><td>{typeimgurl} </td><td>'.$t_type.' {type}<br>'.$t_size.' {size}</td></tr><tr><td colspan="2">'.$t_difficulty.'<br>'.$t_terrain.'</td></tr></table>]]></description>
25 25
   <name>{name}{archivedflag}</name>
26 26
   <LookAt>
27 27
     <longitude>{lon}</longitude>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
   <Point>
35 35
     <coordinates>{lon},{lat},0</coordinates>
36 36
   </Point>
37
-  <Snippet>D: {difficulty}/T: {terrain} {size}  ' . $t_by . ' {username}</Snippet>
37
+  <Snippet>D: {difficulty}/T: {terrain} {size}  ' . $t_by.' {username}</Snippet>
38 38
 </Placemark>
39 39
 ';
40 40
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     while ($r = sql_fetch_array($rs)) {
95 95
         $thisline = $kmlLine;
96
-        $typeimgurl = '<img src="{urlbase}resource2/' . $style . '/images/cacheicon/' . $r['icon_large'] . '" alt="' . $r['typedesc'] . '" title="' . $r['typedesc'] . '" />';
96
+        $typeimgurl = '<img src="{urlbase}resource2/'.$style.'/images/cacheicon/'.$r['icon_large'].'" alt="'.$r['typedesc'].'" title="'.$r['typedesc'].'" />';
97 97
 
98 98
         $thisline = mb_ereg_replace('{icon}', $r['kml_name'], $thisline);
99 99
         $thisline = mb_ereg_replace('{typeimgurl}', $typeimgurl, $thisline);
@@ -111,11 +111,11 @@  discard block
 block discarded – undo
111 111
 
112 112
         if (($r['status'] == 2) || ($r['status'] == 3) || ($r['status'] == 6)) {
113 113
             if ($r['status'] == 2) {
114
-                $thisline = mb_ereg_replace('{archivedflag}', ' (' . $state_temporarily_na . ')', $thisline);
114
+                $thisline = mb_ereg_replace('{archivedflag}', ' ('.$state_temporarily_na.')', $thisline);
115 115
             } elseif ($r['status'] == 3) {
116
-                $thisline = mb_ereg_replace('{archivedflag}', ' (' . $state_archived . ')', $thisline);
116
+                $thisline = mb_ereg_replace('{archivedflag}', ' ('.$state_archived.')', $thisline);
117 117
             } else {
118
-                $thisline = mb_ereg_replace('{archivedflag}', ' (' . $state_locked . ')', $thisline);
118
+                $thisline = mb_ereg_replace('{archivedflag}', ' ('.$state_locked.')', $thisline);
119 119
             }
120 120
         } else {
121 121
             $thisline = mb_ereg_replace('{archivedflag}', '', $thisline);
Please login to merge, or discard this patch.