aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-07-22 14:04:26 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-07-22 14:04:26 +0000
commitfcb0c89962242fec72d7ed01c7049601a696e4be (patch)
treeceb9de55f45604fc5aa55df75dcd69ce0e356f2c /phpBB/includes/mcp
parent61616582628fa1b6e61f5522d3e64c454e66bb5d (diff)
downloadforums-fcb0c89962242fec72d7ed01c7049601a696e4be.tar
forums-fcb0c89962242fec72d7ed01c7049601a696e4be.tar.gz
forums-fcb0c89962242fec72d7ed01c7049601a696e4be.tar.bz2
forums-fcb0c89962242fec72d7ed01c7049601a696e4be.tar.xz
forums-fcb0c89962242fec72d7ed01c7049601a696e4be.zip
Cleaning up (#13689)
Also removed the useless login box from the ACP. git-svn-id: file:///svn/phpbb/trunk@7919 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r--phpBB/includes/mcp/mcp_forum.php2
-rwxr-xr-xphpBB/includes/mcp/mcp_notes.php2
-rw-r--r--phpBB/includes/mcp/mcp_post.php6
-rw-r--r--phpBB/includes/mcp/mcp_queue.php2
-rwxr-xr-xphpBB/includes/mcp/mcp_reports.php2
-rw-r--r--phpBB/includes/mcp/mcp_topic.php4
-rwxr-xr-xphpBB/includes/mcp/mcp_warn.php10
7 files changed, 14 insertions, 14 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php
index 0578170d7b..4059e77d39 100644
--- a/phpBB/includes/mcp/mcp_forum.php
+++ b/phpBB/includes/mcp/mcp_forum.php
@@ -276,7 +276,7 @@ function mcp_resync_topics($topic_ids)
if (!sizeof($topic_ids))
{
- trigger_error($user->lang['NO_TOPIC_SELECTED']);
+ trigger_error('NO_TOPIC_SELECTED');
}
if (!check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('m_')))
diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php
index 447d000cb4..bc4782abea 100755
--- a/phpBB/includes/mcp/mcp_notes.php
+++ b/phpBB/includes/mcp/mcp_notes.php
@@ -86,7 +86,7 @@ class mcp_notes
if (!$userrow)
{
- trigger_error($user->lang['NO_USER']);
+ trigger_error('NO_USER');
}
$user_id = $userrow['user_id'];
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index dc8733d0a5..698bcc8dd6 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -26,7 +26,7 @@ function mcp_post_details($id, $mode, $action)
if (!sizeof($post_info))
{
- trigger_error($user->lang['POST_NOT_EXIST']);
+ trigger_error('POST_NOT_EXIST');
}
$post_info = $post_info[$post_id];
@@ -79,7 +79,7 @@ function mcp_post_details($id, $mode, $action)
if (!$row)
{
- trigger_error($user->lang['NO_USER']);
+ trigger_error('NO_USER');
}
if ($auth->acl_get('m_chgposter', $post_info['forum_id']))
@@ -473,7 +473,7 @@ function change_poster(&$post_info, $userdata)
if (!sizeof($post_info))
{
- trigger_error($user->lang['POST_NOT_EXIST']);
+ trigger_error('POST_NOT_EXIST');
}
$post_info = $post_info[$post_id];
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index d3af2caa24..1259944439 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -224,7 +224,7 @@ class mcp_queue
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 8617cb5ca7..9a06b3bbf2 100755
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -242,7 +242,7 @@ class mcp_reports
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index ef41ede5c4..1440c4dd6b 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -25,7 +25,7 @@ function mcp_topic_view($id, $mode, $action)
if (!sizeof($topic_info))
{
- trigger_error($user->lang['TOPIC_NOT_EXIST']);
+ trigger_error('TOPIC_NOT_EXIST');
}
$topic_info = $topic_info[$topic_id];
@@ -439,7 +439,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
if (!sizeof($post_id_list))
{
- trigger_error($user->lang['NO_POST_SELECTED']);
+ trigger_error('NO_POST_SELECTED');
}
$icon_id = request_var('icon', 0);
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 16339ddf55..6fd0f52d6f 100755
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -203,19 +203,19 @@ class mcp_warn
if (!$user_row)
{
- trigger_error($user->lang['NO_POST']);
+ trigger_error('NO_POST');
}
// There is no point issuing a warning to ignored users (ie anonymous and bots)
if ($user_row['user_type'] == USER_IGNORE)
{
- trigger_error($user->lang['CANNOT_WARN_ANONYMOUS']);
+ trigger_error('CANNOT_WARN_ANONYMOUS');
}
// Prevent someone from warning themselves
if ($user_row['user_id'] == $user->data['user_id'])
{
- trigger_error($user->lang['CANNOT_WARN_SELF']);
+ trigger_error('CANNOT_WARN_SELF');
}
// Check if there is already a warning for this post to prevent multiple
@@ -229,7 +229,7 @@ class mcp_warn
if ($row)
{
- trigger_error($user->lang['ALREADY_WARNED']);
+ trigger_error('ALREADY_WARNED');
}
$user_id = $user_row['user_id'];
@@ -325,7 +325,7 @@ class mcp_warn
// Prevent someone from warning themselves
if ($user_row['user_id'] == $user->data['user_id'])
{
- trigger_error($user->lang['CANNOT_WARN_SELF']);
+ trigger_error('CANNOT_WARN_SELF');
}
$user_id = $user_row['user_id'];