@@ -112,7 +112,7 @@ |
||
112 | 112 | |
113 | 113 | // rebuild block with replaced plural |
114 | 114 | $block = ''; |
115 | - foreach ($attrs AS $k => $v) { |
|
115 | + foreach ($attrs as $k => $v) { |
|
116 | 116 | if ($block != '') { |
117 | 117 | $block .= ' '; |
118 | 118 | } |
@@ -145,7 +145,7 @@ |
||
145 | 145 | <td><strong>{t}Language:{/t} </strong></td> |
146 | 146 | <td> |
147 | 147 | <?php |
148 | - foreach ($opt['template']['locales'] AS $k => $lang) |
|
148 | + foreach ($opt['template']['locales'] as $k => $lang) |
|
149 | 149 | if ($lang['show'] == true) |
150 | 150 | echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" title="' . $lang['name'] . '" width="24px" height="18px" /></a> '; |
151 | 151 | ?> |
@@ -1275,7 +1275,7 @@ |
||
1275 | 1275 | { |
1276 | 1276 | global $opt; |
1277 | 1277 | |
1278 | - $rs = sql("SHOW $type STATUS LIKE '&1'", $name); |
|
1278 | + $rs = sql("show $type STATUS LIKE '&1'", $name); |
|
1279 | 1279 | $r = sql_fetch_assoc($rs); |
1280 | 1280 | sql_free_result($rs); |
1281 | 1281 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | // only a few percent of caches. We must rely on fast data caching. |
64 | 64 | |
65 | 65 | $rs = sql_slave( |
66 | - "SELECT |
|
66 | + "select |
|
67 | 67 | $fields, |
68 | 68 | `user`.`username`, |
69 | 69 | `pics`.`date_created` AS `picdate` |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | // This saves us one grouped subquery. |
100 | 100 | |
101 | 101 | $rs = sql_slave( |
102 | - "SELECT $fields, `user`.`username`, `pics`.`date_created` AS `picdate` |
|
102 | + "select $fields, `user`.`username`, `pics`.`date_created` AS `picdate` |
|
103 | 103 | FROM |
104 | 104 | (SELECT `uuid`, `url`, `title`, `date_created`, `object_id` |
105 | 105 | FROM `pictures` |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | // all pics of one user, except spoilers and invisibles |
139 | 139 | |
140 | 140 | $rs = sql( |
141 | - "SELECT $fields, `logs`.`date` AS `picdate` |
|
141 | + "select $fields, `logs`.`date` AS `picdate` |
|
142 | 142 | FROM `pictures` `pics` |
143 | 143 | $join_logs |
144 | 144 | $join_caches |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | // by an old log deletion (we should remove those ...) |
155 | 155 | |
156 | 156 | $rs = sql( |
157 | - "SELECT $fields, `logs`.`date` AS `picdate` |
|
157 | + "select $fields, `logs`.`date` AS `picdate` |
|
158 | 158 | FROM `pictures` AS `pics` |
159 | 159 | $join_logs |
160 | 160 | WHERE `object_type`=1 AND `logs`.`user_id`='&1' |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | // in listing view |
192 | 192 | |
193 | 193 | $rs = sql( |
194 | - "SELECT $fields, `user`.`username`, `logs`.`date` AS `picdate` |
|
194 | + "select $fields, `user`.`username`, `logs`.`date` AS `picdate` |
|
195 | 195 | FROM `pictures` AS `pics` |
196 | 196 | $join_logs |
197 | 197 | $join_user |