From c4ab45ade18b38d6277e784aeb142b0ee5ed4c06 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 8 Jun 2014 23:45:11 +0200 Subject: [PATCH] [ticket/246] Fix misspellings in portal files B3P-246 --- controller/main.php | 2 +- ext.php | 6 ++---- includes/functions.php | 2 +- includes/functions_upload.php | 2 +- includes/trim_message/bbcodes.php | 2 +- language/de/portal_acp.php | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/controller/main.php b/controller/main.php index 22f042f5..d6072a96 100644 --- a/controller/main.php +++ b/controller/main.php @@ -175,7 +175,7 @@ class main continue; } - // Do not try to load non-existant modules + // Do not try to load non-existent modules if (!isset($this->modules[$row['module_classname']])) { if (file_exists("{$this->includes_path}modules/portal_{$row['module_classname']}{$this->php_ext}")) diff --git a/ext.php b/ext.php index a752bc52..e4c82596 100644 --- a/ext.php +++ b/ext.php @@ -2,14 +2,12 @@ /** * * @package Board3 Portal v2.1 -* @copyright (c) 2013 Board3 Group ( www.board3.de ) +* @copyright (c) 2014 Board3 Group ( www.board3.de ) * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * */ -// this file is not really needed, when empty it can be ommitted -// however you can override the default methods and add custom -// installation logic +// This file is needed for phpBB3 to properly register the extension namespace board3\portal; diff --git a/includes/functions.php b/includes/functions.php index f73f0264..f537a8bd 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -453,7 +453,7 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite break; default: - // this shouldn't happend @todo: use trigger_error() + // this shouldn't happen but default to announcements $pagination_type = 'ap'; $anker = '#a'; } diff --git a/includes/functions_upload.php b/includes/functions_upload.php index 0195d9ba..cba9541c 100755 --- a/includes/functions_upload.php +++ b/includes/functions_upload.php @@ -322,7 +322,7 @@ class portal_upload /** * @author Michal Nazarewicz (from the php manual) - * Creates all non-existant directories in a path + * Creates all non-existent directories in a path * @param $path - path to create * @param $mode - CHMOD the new dir to these permissions * @return bool diff --git a/includes/trim_message/bbcodes.php b/includes/trim_message/bbcodes.php index eb382680..09d8e4e5 100644 --- a/includes/trim_message/bbcodes.php +++ b/includes/trim_message/bbcodes.php @@ -351,7 +351,7 @@ class phpbb_trim_message_bbcodes } /** - * Get the length of the content (substract code for smilie and url parsing) + * Get the length of the content (subtract code for smilie and url parsing) * * @param string $content Message to get the content length from * Exp: text diff --git a/language/de/portal_acp.php b/language/de/portal_acp.php index 73f325b2..aa25139a 100644 --- a/language/de/portal_acp.php +++ b/language/de/portal_acp.php @@ -98,7 +98,7 @@ $lang = array_merge($lang, array( 'LINK_ADDED' => 'Der Link wurde erfolgreich eingetragen', 'LINK_UPDATED' => 'Der Link wurde erfolgreich geändert', - 'LOG_PORTAL_LINK_ADDED' => 'Portal-Einstellungen geändert
» Link hinzu gefügt: %s ', + 'LOG_PORTAL_LINK_ADDED' => 'Portal-Einstellungen geändert
» Link hinzugefügt: %s ', 'LOG_PORTAL_LINK_UPDATED' => 'Portal-Einstellungen geändert
» Link geändert: %s ', 'LOG_PORTAL_LINK_REMOVED' => 'Portal-Einstellungen geändert
» Link gelöscht: %s ', 'LOG_PORTAL_EVENT_ADDED' => 'Portal-Einstellungen geändert
» Termin eingetragen: %s ',