summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2017-01-21 19:37:42 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-21 20:12:35 +0100
commit915ce28feeb9104bf7854ccbd80caebb5dce4aaa (patch)
tree503a31809070fee875e82213d46b90fb0b2fcac9 /includes/pages
parent9a3ad8883403949a59e8935497a548ec536f1d40 (diff)
Replaced " with '
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_groups.php2
-rw-r--r--includes/pages/admin_news.php6
-rw-r--r--includes/pages/admin_questions.php2
-rw-r--r--includes/pages/guest_login.php6
-rw-r--r--includes/pages/user_news.php2
-rw-r--r--includes/pages/user_shifts.php4
6 files changed, 11 insertions, 11 deletions
diff --git a/includes/pages/admin_groups.php b/includes/pages/admin_groups.php
index bc33a2b0..104fa274 100644
--- a/includes/pages/admin_groups.php
+++ b/includes/pages/admin_groups.php
@@ -114,7 +114,7 @@ function admin_groups()
DB::delete('DELETE FROM `GroupPrivileges` WHERE `group_id`=?', [$group_id]);
$privilege_names = [];
foreach ($_REQUEST['privileges'] as $privilege) {
- if (preg_match("/^[0-9]{1,}$/", $privilege)) {
+ if (preg_match('/^[0-9]{1,}$/', $privilege)) {
$group_privileges_source = DB::select(
'SELECT `name` FROM `Privileges` WHERE `id`=? LIMIT 1',
[$privilege]
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php
index 86631d6b..af5dffc6 100644
--- a/includes/pages/admin_news.php
+++ b/includes/pages/admin_news.php
@@ -13,8 +13,8 @@ function admin_news()
redirect(page_link_to('news'));
}
- $html = '<div class="col-md-12"><h1>' . _("Edit news entry") . '</h1>' . msg();
- if (isset($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) {
+ $html = '<div class="col-md-12"><h1>' . _('Edit news entry') . '</h1>' . msg();
+ if (isset($_REQUEST['id']) && preg_match('/^[0-9]{1,11}$/', $_REQUEST['id'])) {
$news_id = $_REQUEST['id'];
} else {
return error('Incomplete call, missing News ID.', true);
@@ -40,7 +40,7 @@ function admin_news()
], page_link_to('admin_news&action=save&id=' . $news_id));
$html .= '<a class="btn btn-danger" href="' . page_link_to('admin_news&action=delete&id=' . $news_id) . '">'
- . '<span class="glyphicon glyphicon-trash"></span> ' . _("Delete")
+ . '<span class="glyphicon glyphicon-trash"></span> ' . _('Delete')
. '</a>';
break;
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php
index ef84b111..aca9b570 100644
--- a/includes/pages/admin_questions.php
+++ b/includes/pages/admin_questions.php
@@ -24,7 +24,7 @@ function admin_new_questions()
$new_messages = count(DB::select('SELECT `QID` FROM `Questions` WHERE `AID` IS NULL'));
if ($new_messages > 0) {
- return '<a href="' . page_link_to("admin_questions") . '">' . _('There are unanswered questions!') . '</a>';
+ return '<a href="' . page_link_to('admin_questions') . '">' . _('There are unanswered questions!') . '</a>';
}
}
}
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index f08f9260..647fa585 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -155,7 +155,7 @@ function guest_register()
if (isset($_REQUEST['prename'])) {
$preName = strip_request_item('prename');
}
- if (isset($_REQUEST['age']) && preg_match("/^[0-9]{0,4}$/", $_REQUEST['age'])) {
+ if (isset($_REQUEST['age']) && preg_match('/^[0-9]{0,4}$/', $_REQUEST['age'])) {
$age = strip_request_item('age');
}
if (isset($_REQUEST['tel'])) {
@@ -317,8 +317,8 @@ function guest_register()
]),
form_checkboxes(
'angel_types',
- _("What do you want to do?") . sprintf(
- " (<a href=\"%s\">%s</a>)",
+ _('What do you want to do?') . sprintf(
+ ' (<a href="%s">%s</a>)',
page_link_to('angeltypes') . '&action=about',
_('Description of job types')
),
diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php
index 3828e293..7dfc7d0c 100644
--- a/includes/pages/user_news.php
+++ b/includes/pages/user_news.php
@@ -134,7 +134,7 @@ function user_news_comments()
',
[
$nid,
- date("Y-m-d H:i:s"),
+ date('Y-m-d H:i:s'),
$text,
$user["UID"],
]
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 16af0197..55e49e4f 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -265,8 +265,8 @@ function make_select($items, $selected, $name, $title = null)
$html = '<div id="selection_' . $name . '" class="selection ' . $name . '">' . "\n";
$html .= implode("\n", $html_items);
$html .= buttons([
- button("javascript: checkAll('selection_" . $name . "', true)", _('All'), ''),
- button("javascript: checkAll('selection_" . $name . "', false)", _('None'), '')
+ button('javascript: checkAll(\'selection_' . $name . '\', true)', _('All'), ''),
+ button('javascript: checkAll(\'selection_' . $name . '\', false)', _('None'), '')
]);
$html .= '</div>' . "\n";
return $html;