summaryrefslogtreecommitdiff
path: root/modules/path/path.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-22 15:53:00 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-22 15:53:00 +0000
commitc1aadd2a21c867e02682777ea6c7fd7ae88f6148 (patch)
treedfbcc200c3f005f29e15745cf34d7031d46e8496 /modules/path/path.admin.inc
parent097f49379858d62546e2ddcb9d89f7c592e51caf (diff)
downloadbrdo-c1aadd2a21c867e02682777ea6c7fd7ae88f6148.tar.gz
brdo-c1aadd2a21c867e02682777ea6c7fd7ae88f6148.tar.bz2
- Patch #440920 by brianV: whitespace and coding style clean-up.
Diffstat (limited to 'modules/path/path.admin.inc')
-rw-r--r--modules/path/path.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc
index 369df528b..20999cc92 100644
--- a/modules/path/path.admin.inc
+++ b/modules/path/path.admin.inc
@@ -15,14 +15,14 @@ function path_admin_overview($keys = NULL) {
// Add the filter form above the overview table.
$output = drupal_get_form('path_admin_filter_form', $keys);
// Enable language column if locale is enabled or if we have any alias with language
- $count = db_result(db_query("SELECT COUNT(*) FROM {url_alias} WHERE language != ''"));
+ $count = db_result(db_query("SELECT COUNT(*) FROM {url_alias} WHERE language <> ''"));
$multilanguage = (module_exists('locale') || $count);
if ($keys) {
// Replace wildcards with PDO wildcards.
$keys = preg_replace('!\*+!', '%', $keys);
$sql = "SELECT * FROM {url_alias} WHERE dst LIKE :keys";
- $args = array(':keys' => '%'. $keys .'%');
+ $args = array(':keys' => '%' . $keys . '%');
}
else {
$sql = 'SELECT * FROM {url_alias}';
@@ -144,7 +144,7 @@ function path_admin_form_validate($form, &$form_state) {
// Language is only set if locale module is enabled, otherwise save for all languages.
$language = isset($form_state['values']['language']) ? $form_state['values']['language'] : '';
- if (db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE pid != %d AND dst = '%s' AND language = '%s'", $pid, $dst, $language))) {
+ if (db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE pid <> %d AND dst = '%s' AND language = '%s'", $pid, $dst, $language))) {
form_set_error('dst', t('The alias %alias is already in use in this language.', array('%alias' => $dst)));
}
$item = menu_get_item($src);