aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors/functions_phpbb20.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-10-04 11:33:33 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-10-04 11:33:33 +0000
commit92f554e38aaf3c4d280c201d3a6521e519acfb47 (patch)
tree8a72a5f6ea7e5b42efeefe551b055e3605699750 /phpBB/install/convertors/functions_phpbb20.php
parent303239afa44caa02709cf2f301e4fe39704f3383 (diff)
downloadforums-92f554e38aaf3c4d280c201d3a6521e519acfb47.tar
forums-92f554e38aaf3c4d280c201d3a6521e519acfb47.tar.gz
forums-92f554e38aaf3c4d280c201d3a6521e519acfb47.tar.bz2
forums-92f554e38aaf3c4d280c201d3a6521e519acfb47.tar.xz
forums-92f554e38aaf3c4d280c201d3a6521e519acfb47.zip
deregister globals to install too
git-svn-id: file:///svn/phpbb/trunk@8130 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/convertors/functions_phpbb20.php')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index 74ca47986e..c929d58234 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -1,13 +1,18 @@
<?php
-/**
+/**
*
* @package install
* @version $Id$
-* @copyright (c) 2006 phpBB Group
-* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+* @copyright (c) 2006 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
/**
* Helper functions for phpBB 2.0.x to phpBB 3.0.x conversion
*/
@@ -524,7 +529,7 @@ function phpbb_user_id($user_id)
// A user id of 0 can happen, for example within the ban table if no user is banned...
// Within the posts and topics table this can be "dangerous" but is the fault of the user
- // having mods installed (a poster id of 0 is not possible in 2.0.x).
+ // having mods installed (a poster id of 0 is not possible in 2.0.x).
// Therefore, we return the user id "as is".
return (int) $user_id;