@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | " OR descriptive_title LIKE CONCAT('%', :search_2, '%'))" . |
153 | 153 | " AND multimedia_file_refn NOT LIKE 'http://%'" . |
154 | 154 | " AND multimedia_file_refn NOT LIKE 'https://%'"; |
155 | - $ARGS1 = [ |
|
155 | + $ARGS1 = [ |
|
156 | 156 | 'media_path_1' => $media_path, |
157 | 157 | 'media_folder' => $media_folder, |
158 | 158 | 'media_path_2' => Database::escapeLike($media_path), |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | " AND multimedia_file_refn LIKE CONCAT(:media_path_3, '%')" . |
170 | 170 | " AND multimedia_file_refn NOT LIKE 'http://%'" . |
171 | 171 | " AND multimedia_file_refn NOT LIKE 'https://%'"; |
172 | - $ARGS2 = [ |
|
172 | + $ARGS2 = [ |
|
173 | 173 | 'media_folder' => $media_folder, |
174 | 174 | 'media_path_3' => $media_path, |
175 | 175 | ]; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $ARGS2['media_path_4'] = Database::escapeLike($media_path); |
182 | 182 | } |
183 | 183 | |
184 | - $order = $request->get('order', []); |
|
184 | + $order = $request->get('order', []); |
|
185 | 185 | $SELECT1 .= " ORDER BY "; |
186 | 186 | if ($order) { |
187 | 187 | foreach ($order as $key => $value) { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | if ($length > 0) { |
208 | - $SELECT1 .= " LIMIT :length OFFSET :start"; |
|
208 | + $SELECT1 .= " LIMIT :length OFFSET :start"; |
|
209 | 209 | $ARGS1['length'] = $length; |
210 | 210 | $ARGS1['start'] = $start; |
211 | 211 | } |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | " JOIN `##media_file` USING (m_id, m_file)" . |
239 | 239 | " WHERE (multimedia_file_refn LIKE 'http://%' OR multimedia_file_refn LIKE 'https://%')" . |
240 | 240 | " AND (multimedia_file_refn LIKE CONCAT('%', :search_1, '%') OR descriptive_title LIKE CONCAT('%', :search_2, '%'))"; |
241 | - $ARGS1 = [ |
|
241 | + $ARGS1 = [ |
|
242 | 242 | 'search_1' => Database::escapeLike($search), |
243 | 243 | 'search_2' => Database::escapeLike($search), |
244 | 244 | ]; |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | if ($length > 0) { |
277 | - $SELECT1 .= " LIMIT :length OFFSET :start"; |
|
277 | + $SELECT1 .= " LIMIT :length OFFSET :start"; |
|
278 | 278 | $ARGS1['length'] = $length; |
279 | 279 | $ARGS1['start'] = $start; |
280 | 280 | } |
@@ -193,7 +193,7 @@ |
||
193 | 193 | |
194 | 194 | // Username already exists |
195 | 195 | if (User::findByUserName($username) !== null) { |
196 | - throw new Exception(I18N::translate('Duplicate username. A user with that username already exists. Please choose another username.'.$username)); |
|
196 | + throw new Exception(I18N::translate('Duplicate username. A user with that username already exists. Please choose another username.' . $username)); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | // Email already exists |
@@ -975,8 +975,8 @@ |
||
975 | 975 | // For backwards compatibility with webtrees 1.x we store the two calendar formats in one variable |
976 | 976 | // e.g. "gregorian_and_jewish" |
977 | 977 | $tree->setPreference('CALENDAR_FORMAT', implode('_and_', array_unique([ |
978 | - $request->get('CALENDAR_FORMAT0', 'none'), |
|
979 | - $request->get('CALENDAR_FORMAT1', 'none'), |
|
978 | + $request->get('CALENDAR_FORMAT0', 'none'), |
|
979 | + $request->get('CALENDAR_FORMAT1', 'none'), |
|
980 | 980 | ]))); |
981 | 981 | $tree->setPreference('CHART_BOX_TAGS', implode(',', $request->get('CHART_BOX_TAGS', []))); |
982 | 982 | $tree->setPreference('CONTACT_USER_ID', $request->get('CONTACT_USER_ID')); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | <select name="tree_name" class="form-control" id="import-server-file"> |
47 | 47 | <option value=""></option> |
48 | 48 | <?php foreach ($gedcom_files as $gedcom_file): ?> |
49 | - <option value="<?= e($gedcom_file) ?>" <?= $gedcom_file === $default_gedcom_file? 'selected' : '' ?>> |
|
49 | + <option value="<?= e($gedcom_file) ?>" <?= $gedcom_file === $default_gedcom_file ? 'selected' : '' ?>> |
|
50 | 50 | <?= e($gedcom_file) ?> |
51 | 51 | </option> |
52 | 52 | <?php endforeach ?> |
@@ -1604,7 +1604,7 @@ |
||
1604 | 1604 | $height = (int) $attrs['height']; |
1605 | 1605 | } |
1606 | 1606 | |
1607 | - $person = Individual::getInstance($id, $this->tree); |
|
1607 | + $person = Individual::getInstance($id, $this->tree); |
|
1608 | 1608 | $media_file = $person->findHighlightedMediaFile(); |
1609 | 1609 | |
1610 | 1610 | if ($media_file !== null && $media_file->fileExists()) { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | " DROP COLUMN sv_long," . |
37 | 37 | " DROP COLUMN sv_lati," . |
38 | 38 | " DROP COLUMN sv_bearing," . |
39 | - " DROP COLUMN sv_elevation,". |
|
39 | + " DROP COLUMN sv_elevation," . |
|
40 | 40 | " DROP COLUMN sv_zoom," . |
41 | 41 | " DROP INDEX ix1," . |
42 | 42 | " DROP INDEX ix2," . |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | "DELETE FROM `##module_setting` WHERE module_name='openstreetmap' AND setting_name=''" |
57 | 57 | ]; |
58 | 58 | |
59 | - foreach($queries as $query) { |
|
59 | + foreach ($queries as $query) { |
|
60 | 60 | try { |
61 | 61 | Database::exec($query); |
62 | 62 | } catch (PDOException $ex) { |