Skip to content
Browse files

Fix code style: remove unneeded spaces

Signed-off-by: dimkalinux <dimka.linux@gmail.com>
  • Loading branch information...
1 parent 3e31126 commit d537dde17e9dbbad37b425cb7764f6acbbef05cc @Shutnik Shutnik committed with dimkalinux Jan 11, 2012
View
2 README
@@ -24,7 +24,7 @@ NOTE: Make a backup of your current forum directory before proceeding. Also, don
2. Replace your old 1.2 directory with the contents of the archive's version 1.4.
3. Run db_update.php from the forum admin directory (e.g. open http://example.com/punbb/admin/db_update.php in your browser). Follow the instructions.
- Upgrade from 1.3
+ Upgrade from 1.3
----------------------------------------------
NOTE: Make a backup of your current forum directory before proceeding. Also, don't forget to make a backup of your forum database. Use the tool mysqldump for MySQL and pg_dump if you are using PostgreSQL. If you're using SQLite, just make a backup copy of the SQLite database file. You can also make database backups via most administration tools such as MySQL Administrator, phpMyAdmin and phpPgAdmin.
View
8 admin/db_update.php
@@ -347,7 +347,7 @@ function convert_table_utf8($table)
global $forum_db;
$types = array(
- 'char' => 'binary',
+ 'char' => 'binary',
'varchar' => 'varbinary',
'tinytext' => 'tinyblob',
'mediumtext' => 'mediumblob',
@@ -389,7 +389,7 @@ function convert_avatars()
{
while (false !== ($avatar = readdir($handle)))
{
- $avatar_file = $avatar_dir.$avatar;
+ $avatar_file = $avatar_dir.$avatar;
if (!is_file($avatar_file))
{
continue;
@@ -833,7 +833,7 @@ function convert_avatars()
$forum_db->alter_field('reports', 'message', 'TEXT', true);
- // Drop fulltext indexes (should only apply to SVN installs)
+ // Drop fulltext indexes (should only apply to SVN installs)
if (in_array($db_type, array('mysql', 'mysqli', 'mysql_innodb', 'mysqli_innodb')))
{
$forum_db->drop_index('topics', 'subject_idx');
@@ -1363,7 +1363,7 @@ function convert_avatars()
while ($cur_user = $forum_db->fetch_assoc($result))
{
if ($cur_user['linkedin'] != '' &&
- strpos(strtolower($cur_user['linkedin']), 'http://') !== 0 &&
+ strpos(strtolower($cur_user['linkedin']), 'http://') !== 0 &&
strpos(strtolower($cur_user['linkedin']), 'https://') !== 0)
{
$query = array(
View
10 admin/extensions.php
@@ -202,7 +202,7 @@
if (isset($ext_data['extension']['hooks']['hook']))
{
foreach ($ext_data['extension']['hooks']['hook'] as $ext_hook)
- {
+ {
$cur_hooks = explode(',', $ext_hook['attributes']['id']);
foreach ($cur_hooks as $cur_hook)
{
@@ -215,8 +215,8 @@
($hook = get_hook('aex_install_comply_qr_add_hook')) ? eval($hook) : null;
$forum_db->query_build($query) or error(__FILE__, __LINE__);
}
- }
- }
+ }
+ }
// Empty the PHP cache
forum_clear_cache();
@@ -318,7 +318,7 @@
<div class="ct-set data-set set1">
<div class="ct-box data-box">
<h3 class="ct-legend hn"><span><?php echo forum_htmlencode($ext_data['extension']['title']) ?></span></h3>
- <p><?php echo ((strpos($id, 'hotfix_') !== 0) ? sprintf($lang_admin_ext['Version'], $ext_data['extension']['version']) : $lang_admin_ext['Hotfix']) ?></p>
+ <p><?php echo ((strpos($id, 'hotfix_') !== 0) ? sprintf($lang_admin_ext['Version'], $ext_data['extension']['version']) : $lang_admin_ext['Hotfix']) ?></p>
<p><?php printf($lang_admin_ext['Extension by'], forum_htmlencode($ext_data['extension']['author'])) ?></p>
<p><?php echo forum_htmlencode($ext_data['extension']['description']) ?></p>
</div>
@@ -881,7 +881,7 @@
$update_hour = (isset($forum_ext_versions_update_cache) && (time() - $forum_ext_versions_update_cache > 60 * 60));
// Update last versions if there is no cahe or some extension was added/removed or one day has gone since last update
- $update_new_versions_cache = !defined('FORUM_EXT_VERSIONS_LOADED') || (isset($forum_ext_last_versions) && array_diff($inst_exts, $forum_ext_last_versions) != array()) || $update_hour || ($update_hour && isset($min_timestamp) && (time() - $min_timestamp > 60*60*24));
+ $update_new_versions_cache = !defined('FORUM_EXT_VERSIONS_LOADED') || (isset($forum_ext_last_versions) && array_diff($inst_exts, $forum_ext_last_versions) != array()) || $update_hour || ($update_hour && isset($min_timestamp) && (time() - $min_timestamp > 60*60*24));
($hook = get_hook('aex_before_update_checking')) ? eval($hook) : null;
View
2 admin/forums.php
@@ -614,7 +614,7 @@
<div class="mf-item">
<input type="hidden" name="read_forum_old[<?php echo $cur_perm['g_id'] ?>]" value="<?php echo ($read_forum) ? '1' : '0'; ?>" />
<span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="read_forum_new[<?php echo $cur_perm['g_id'] ?>]" value="1"<?php if ($read_forum) echo ' checked="checked"'; echo ($cur_perm['g_read_board'] == '0') ? ' disabled="disabled"' : ''; ?> /></span>
- <label for="fld<?php echo $forum_page['fld_count'] ?>"<?php if (!$read_forum_def) echo ' class="warn"' ?>><?php echo $lang_admin_forums['Read forum'] ?> <?php if (!$read_forum_def) echo $lang_admin_forums['Not default'] ?></label>
+ <label for="fld<?php echo $forum_page['fld_count'] ?>"<?php if (!$read_forum_def) echo ' class="warn"' ?>><?php echo $lang_admin_forums['Read forum'] ?> <?php if (!$read_forum_def) echo $lang_admin_forums['Not default'] ?></label>
</div>
<?php ($hook = get_hook('afo_edit_forum_pre_cur_group_post_replies_permission')) ? eval($hook) : null; ?>
<div class="mf-item">
View
73 extern.php
@@ -12,50 +12,47 @@
/***********************************************************************
- INSTRUCTIONS
+ INSTRUCTIONS
- This script is used to include information about your board from
- pages outside the forums and to syndicate news about recent
- discussions via RSS/Atom/XML. The script can display a list of
- recent discussions, a list of active users or a collection of
- general board statistics. The script can be called directly via
- an URL, from a PHP include command or through the use of Server
- Side Includes (SSI).
+ This script is used to include information about your board from
+ pages outside the forums and to syndicate news about recent
+ discussions via RSS/Atom/XML. The script can display a list of
+ recent discussions, a list of active users or a collection of
+ general board statistics. The script can be called directly via
+ an URL, from a PHP include command or through the use of Server
+ Side Includes (SSI).
- The scripts behaviour is controlled via variables supplied in the
- URL to the script. The different variables are: action (what to
- do), show (how many items to display), fid (the ID or ID's of
- the forum(s) to poll for topics), nfid (the ID or ID's of forums
- that should be excluded), tid (the ID of the topic from which to
- display posts) and type (output as HTML or RSS). The only
- mandatory variable is action. Possible/default values are:
+ The scripts behaviour is controlled via variables supplied in the
+ URL to the script. The different variables are: action (what to
+ do), show (how many items to display), fid (the ID or ID's of
+ the forum(s) to poll for topics), nfid (the ID or ID's of forums
+ that should be excluded), tid (the ID of the topic from which to
+ display posts) and type (output as HTML or RSS). The only
+ mandatory variable is action. Possible/default values are:
- action: feed - show most recent topics/posts (HTML or RSS)
- online - show users online (HTML)
- online_full - as above, but includes a full list (HTML)
- stats - show board statistics (HTML)
+ action: feed - show most recent topics/posts (HTML or RSS)
+ online - show users online (HTML)
+ online_full - as above, but includes a full list (HTML)
+ stats - show board statistics (HTML)
- type: rss - output as RSS 2.0
- atom - output as Atom 1.0
- xml - output as XML
- html - output as HTML (<li>'s)
+ type: rss - output as RSS 2.0
+ atom - output as Atom 1.0
+ xml - output as XML
+ html - output as HTML (<li>'s)
- fid: One or more forum ID's (comma-separated). If ignored,
- topics from all readable forums will be pulled.
+ fid: One or more forum ID's (comma-separated). If ignored,
+ topics from all readable forums will be pulled.
- nfid: One or more forum ID's (comma-separated) that are to be
- excluded. E.g. the ID of a a test forum.
-
- tid: A topic ID from which to show posts. If a tid is supplied,
- fid and nfid are ignored.
-
- show: Any integer value between 1 and 50. The default is 15.
-
- sort: posted - sort topics by posted time (default)
- last_post - sort topics by last post
+ nfid: One or more forum ID's (comma-separated) that are to be
+ excluded. E.g. the ID of a a test forum.
+ tid: A topic ID from which to show posts. If a tid is supplied,
+ fid and nfid are ignored.
+ show: Any integer value between 1 and 50. The default is 15.
+ sort: posted - sort topics by posted time (default)
+ last_post - sort topics by last post
/***********************************************************************/
@@ -69,7 +66,7 @@
// The length at which topic subjects will be truncated (for HTML output)
if (!defined('FORUM_EXTERN_MAX_SUBJECT_LENGTH'))
- define('FORUM_EXTERN_MAX_SUBJECT_LENGTH', 30);
+ define('FORUM_EXTERN_MAX_SUBJECT_LENGTH', 30);
// If we're a guest and we've sent a username/pass, we can try to authenticate using those details
if ($forum_user['is_guest'] && isset($_SERVER['PHP_AUTH_USER']))
@@ -327,7 +324,7 @@ function output_html($feed)
// Setup the feed
$feed = array(
- 'title' => $forum_config['o_board_title'].$lang_common['Title separator'].$cur_topic['subject'],
+ 'title' => $forum_config['o_board_title'].$lang_common['Title separator'].$cur_topic['subject'],
'link' => forum_link($forum_url['topic'], array($tid, sef_friendly($cur_topic['subject']))),
'description' => sprintf($lang_common['RSS description topic'], $cur_topic['subject']),
'items' => array(),
@@ -439,7 +436,7 @@ function output_html($feed)
// Setup the feed
$feed = array(
- 'title' => $forum_config['o_board_title'].$forum_name,
+ 'title' => $forum_config['o_board_title'].$forum_name,
'link' => forum_link($forum_url['index']),
'description' => sprintf($lang_common['RSS description'], $forum_config['o_board_title']),
'items' => array(),
View
6 header.php
@@ -98,7 +98,7 @@
else if (FORUM_PAGE == 'viewtopic')
{
$forum_head['rss'] = '<link rel="alternate" type="application/rss+xml" href="'.forum_link($forum_url['topic_rss'], $id).'" title="RSS" />';
- $forum_head['atom'] = '<link rel="alternate" type="application/atom+xml" href="'.forum_link($forum_url['topic_atom'], $id).'" title="ATOM" />';
+ $forum_head['atom'] = '<link rel="alternate" type="application/atom+xml" href="'.forum_link($forum_url['topic_atom'], $id).'" title="ATOM" />';
}
// If there are other page navigation links (first, next, prev and last)
@@ -277,7 +277,7 @@
// Bottom breadcrumbs
$main_elements['<!-- forum_crumbs_end -->'] = (FORUM_PAGE != 'index') ? '<div id="brd-crumbs-end" class="crumbs">'."\n\t".'<p>'.generate_crumbs(false).'</p>'."\n".'</div>' : '';
// Main section heading
-$main_elements['<!-- forum_main_title -->'] = '<h1 class="main-title">'.((isset($forum_page['main_title'])) ? $forum_page['main_title'] : forum_htmlencode(is_array($last_crumb = end($forum_page['crumbs'])) ? reset($last_crumb) : $last_crumb)).(isset($forum_page['main_head_pages']) ? ' <small>'.$forum_page['main_head_pages'].'</small>' : '').'</h1>'."\n";
+$main_elements['<!-- forum_main_title -->'] = '<h1 class="main-title">'.((isset($forum_page['main_title'])) ? $forum_page['main_title'] : forum_htmlencode(is_array($last_crumb = end($forum_page['crumbs'])) ? reset($last_crumb) : $last_crumb)).(isset($forum_page['main_head_pages']) ? ' <small>'.$forum_page['main_head_pages'].'</small>' : '').'</h1>'."\n";
// Top pagination and post links
$main_elements['<!-- forum_main_pagepost_top -->'] = (!empty($forum_page['page_post'])) ? '<div id="brd-pagepost-top" class="main-pagepost gen-content">'."\n\t".implode("\n\t", $forum_page['page_post'])."\n".'</div>' : '';
@@ -299,7 +299,7 @@
($hook = get_hook('hd_main_elements')) ? eval($hook) : null;
-$tpl_main = str_replace(array_keys($main_elements), array_values($main_elements), $tpl_main);
+$tpl_main = str_replace(array_keys($main_elements), array_values($main_elements), $tpl_main);
unset($main_elements);
// END MAIN SECTION INTERFACE ELEMENT SUBSTITUTION
View
14 include/functions.php
@@ -638,7 +638,7 @@ function generate_items_info($label, $first, $total)
return $return;
if ($forum_page['num_pages'] == 1)
- $item_info = '<span class="item-info">'.sprintf($lang_common['Item info single'], $label, forum_number_format($total)).'</span>';
+ $item_info = '<span class="item-info">'.sprintf($lang_common['Item info single'], $label, forum_number_format($total)).'</span>';
else
$item_info = '<span class="item-info">'.sprintf($lang_common['Item info plural'], $label, forum_number_format($first), forum_number_format($forum_page['finish_at']), forum_number_format($total)).'</span>';
@@ -1077,7 +1077,7 @@ function get_title($user)
// Return a list of all URL schemes installed
function get_scheme_packs()
{
- $schemes = array();
+ $schemes = array();
if ($handle = opendir(FORUM_ROOT.'include/url'))
{
@@ -3323,7 +3323,7 @@ function error()
$forum_config['o_gzip'] = '0';
}
- // Set a default error messages string if the script failed before $common_lang loaded
+ // Set a default error messages string if the script failed before $common_lang loaded
if (empty($lang_common['Forum error header']))
{
$lang_common['Forum error header'] = 'Sorry! The page could not be loaded.';
@@ -3364,10 +3364,10 @@ function error()
<meta charset="utf-8"/>
<title>Error - <?php echo forum_htmlencode($forum_config['o_board_title']) ?></title>
<style>
- strong { font-weight: bold; }
- body { margin: 50px; font: 85%/150% verdana, arial, sans-serif; color: #222; max-width: 55em; }
- h1 { color: #a00000; font-weight: normal; font-size: 1.45em; }
- code { font-family: monospace, sans-serif; }
+ strong { font-weight: bold; }
+ body { margin: 50px; font: 85%/150% verdana, arial, sans-serif; color: #222; max-width: 55em; }
+ h1 { color: #a00000; font-weight: normal; font-size: 1.45em; }
+ code { font-family: monospace, sans-serif; }
.error_line { color: #999; font-size: .95em; }
</style>
</head>
View
50 include/js/LAB.src.js
@@ -48,7 +48,7 @@
// spoofed and is not adequate for such a mission critical part of the code.
is_opera = global.opera && fOBJTOSTRING.call(global.opera) == sTYPEOBJ+"Opera]",
is_gecko = ("MozAppearance" in oDOC.documentElement.style),
-
+
// the following is a feature sniff for the ability to set async=false on dynamically created script elements, as proposed to the W3C
// RE: http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order
is_script_async = (oDOC.createElement(sSCRIPT).async === true),
@@ -65,13 +65,13 @@
;
global_defs[sPRESERVE] = bFALSE; // force preserve execution order of all loaded scripts (regardless of preloading)
global_defs[sPRELOAD] = bTRUE; // use various tricks for "preloading" scripts
-
+
append_to[sHEAD] = oDOC.head || fGETELEMENTSBYTAGNAME(sHEAD);
append_to[sBODY] = fGETELEMENTSBYTAGNAME(sBODY);
-
+
function isFunc(func) { return fOBJTOSTRING.call(func) === sTYPEFUNC; }
function canonicalScriptURI(src,base_path) {
- var regex = /^\w+\:\/\//, ret;
+ var regex = /^\w+\:\/\//, ret;
if (typeof src != sSTRING) src = "";
if (typeof base_path != sSTRING) base_path = "";
ret = ((/^\/\//.test(src)) ? oWINLOC.protocol : "") + src;
@@ -89,7 +89,7 @@
function engine(queueExec,opts) {
queueExec = !(!queueExec);
if (opts == nNULL) opts = global_defs;
-
+
var ready = bFALSE,
_use_preload = queueExec && opts[sPRELOAD],
_use_cache_preload = _use_preload && opts.cache,
@@ -107,9 +107,9 @@
exec = [],
end_of_chain_check_interval = nNULL
;
-
+
_use_preload = _use_cache_preload || _use_xhr_preload || _use_script_order; // if all flags are turned off, preload is moot so disable it
-
+
function isScriptLoaded(elem,scriptentry) {
if ((elem[sREADYSTATE] && elem[sREADYSTATE]!==sCOMPLETE && elem[sREADYSTATE]!=="loaded") || scriptentry[sDONE]) { return bFALSE; }
elem[sONLOAD] = elem[sONREADYSTATECHANGE] = nNULL; // prevent memory leak
@@ -213,11 +213,11 @@
function loadScript(o) {
if (typeof o == "undefined" || !o) return; // skip over this script call if there's nothing to load
if (o.allowDup == nNULL) o.allowDup = opts.dupe;
- var src = o.src, type = o.type, charset = o.charset, allowDup = o.allowDup,
+ var src = o.src, type = o.type, charset = o.charset, allowDup = o.allowDup,
src_uri = canonicalScriptURI(src,_base_path), scriptentry, same_domain = sameDomain(src_uri);
if (typeof charset != sSTRING) charset = nNULL;
allowDup = !(!allowDup);
- if (!allowDup &&
+ if (!allowDup &&
(
(all_scripts[src_uri] != nNULL) || (first_pass && scripts[src_uri]) || scriptTagExists(src_uri)
)
@@ -234,7 +234,7 @@
scriptentry[sDONE] = bFALSE;
scriptentry[sSRCURI] = src_uri;
scripts_loading = bTRUE;
-
+
if (!_use_script_order && _use_xhr_preload && same_domain) loadScriptXHR(scriptentry,src_uri,type,charset);
else if (!_use_script_order && _use_cache_preload) loadScriptCache(scriptentry,src_uri,type,charset);
else loadScriptElem(scriptentry,src_uri,type,charset);
@@ -251,7 +251,7 @@
}
return sargs;
}
-
+
publicAPI = {
script:function() {
fCLEARTIMEOUT(end_of_chain_check_interval);
@@ -285,7 +285,7 @@
fCLEARTIMEOUT(end_of_chain_check_interval);
first_pass = bFALSE;
if (!isFunc(func)) func = fNOOP;
- // On this current chain's waitFunc function, tack on call to trigger the queue for the *next* engine
+ // On this current chain's waitFunc function, tack on call to trigger the queue for the *next* engine
// in the chain, which will be executed when the current chain finishes loading
var e = engine(queueExec||scripts_loading,opts), // if already in queuing, or if scripts now loading, keep queuing
triggerNextChain = e.trigger, // store ref to e's trigger function for use by 'wfunc'
@@ -302,19 +302,19 @@
}
};
if (queueExec) {
- // if queueing, return a function that the previous chain's waitFunc function can use to trigger this
+ // if queueing, return a function that the previous chain's waitFunc function can use to trigger this
// engine's queue. NOTE: this trigger function is captured and removed from the public chain API before return
publicAPI.trigger = function() {
var fn, idx=-1;
while (fn = exec[++idx]) fn();
- exec = [];
+ exec = [];
};
}
else publicAPI.trigger = fNOOP; // no-op trigger function because this chain is not in queuing mode, so nothing to trigger
return publicAPI;
}
function processOpts(opts) {
- var k, newOpts = {},
+ var k, newOpts = {},
boolOpts = {"UseCachePreload":"cache","UseLocalXHR":"xhr","UsePreloading":sPRELOAD,"AlwaysPreserveOrder":sPRESERVE,"AllowDuplicates":"dupe"},
allOpts = {"AppendTo":sWHICH,"BasePath":"base"}
;
@@ -330,7 +330,7 @@
newOpts.which = (newOpts.which === sHEAD || newOpts.which === sBODY) ? newOpts.which : sHEAD;
return newOpts;
}
-
+
global.$LAB = {
setGlobalDefaults:function(gdefs) { // intentionally does not return an "engine" instance -- must call as stand-alone function call on $LAB
global_defs = processOpts(gdefs);
@@ -345,16 +345,16 @@
return engine().wait.apply(nNULL,arguments);
}
};
-
+
/* The following "hack" was suggested by Andrea Giammarchi and adapted from: http://webreflection.blogspot.com/2009/11/195-chars-to-help-lazy-loading.html
NOTE: this hack only operates in FF and then only in versions where document.readyState is not present (FF < 3.6?).
-
- The hack essentially "patches" the **page** that LABjs is loaded onto so that it has a proper conforming document.readyState, so that if a script which does
- proper and safe dom-ready detection is loaded onto a page, after dom-ready has passed, it will still be able to detect this state, by inspecting the now hacked
- document.readyState property. The loaded script in question can then immediately trigger any queued code executions that were waiting for the DOM to be ready.
- For instance, jQuery 1.4+ has been patched to take advantage of document.readyState, which is enabled by this hack. But 1.3.2 and before are **not** safe or
+
+ The hack essentially "patches" the **page** that LABjs is loaded onto so that it has a proper conforming document.readyState, so that if a script which does
+ proper and safe dom-ready detection is loaded onto a page, after dom-ready has passed, it will still be able to detect this state, by inspecting the now hacked
+ document.readyState property. The loaded script in question can then immediately trigger any queued code executions that were waiting for the DOM to be ready.
+ For instance, jQuery 1.4+ has been patched to take advantage of document.readyState, which is enabled by this hack. But 1.3.2 and before are **not** safe or
fixed by this hack, and should therefore **not** be lazy-loaded by script loader tools such as LABjs.
- */
+ */
(function(addEvent,domLoaded,handler){
if (oDOC[sREADYSTATE] == nNULL && oDOC[addEvent]){
oDOC[sREADYSTATE] = "loading";
@@ -364,5 +364,5 @@
},bFALSE);
}
})("addEventListener","DOMContentLoaded");
-
-})(window);
+
+})(window);
View
2 include/js/punbb.install.js
@@ -33,7 +33,7 @@ PUNBB.install = (function () {
// #db_host is required and can not be empty
if (get('db_host').value.length < 0) {
- get('db_host').value = 'localhost';
+ get('db_host').value = 'localhost';
}
} else {
PUNBB.common.removeClass(get('db_host_block'), 'hidden');
View
2 include/js/punbb.timezone.js
@@ -158,7 +158,7 @@ PUNBB.timezone = (function () {
diff = january_offset - june_offset;
if (diff < 0) {
- return {
+ return {
'utc_offset': january_offset,
'dst': 1,
'hemisphere': HEMISPHERE_NORTH
View
30 include/loader.php
@@ -23,7 +23,7 @@ class Loader
private $libs;
// Class instance
- private static $instance;
+ private static $instance;
// Start of life
@@ -41,20 +41,20 @@ public function __destruct() {
// Singleton
- public static function singleton() {
- if (!isset(self::$instance)) {
- $c = __CLASS__;
- self::$instance = new $c;
- }
+ public static function singleton() {
+ if (!isset(self::$instance)) {
+ $c = __CLASS__;
+ self::$instance = new $c;
+ }
- return self::$instance;
- }
+ return self::$instance;
+ }
- // Clone forbiden
- public function __clone() {
- trigger_error('Clone is forbiden.', E_USER_ERROR);
- }
+ // Clone forbiden
+ public function __clone() {
+ trigger_error('Clone is forbiden.', E_USER_ERROR);
+ }
// Add JS url to load
@@ -471,7 +471,7 @@ private static function sort_libs($a, $b)
}
elseif ($a['weight'] > $b['weight'])
{
- return 1;
+ return 1;
}
else
{
@@ -517,8 +517,8 @@ private function check_conditional_comments($element, $data)
}
else
{
- // "downlevel-revealed".
- $data = "\n<!--[if $expression]><!-->".$data."<!--<![endif]-->";
+ // "downlevel-revealed".
+ $data = "\n<!--[if $expression]><!-->".$data."<!--<![endif]-->";
}
return $data;
View
52 include/parser.php
@@ -136,11 +136,11 @@ function preparse_tags($text, &$errors, $is_signature = false)
$tags_quotes = array('url', 'email', 'img');
// Tags we limit bbcode in
$tags_limit_bbcode = array(
- '*' => array('b', 'i', 'u', 'color', 'colour', 'url', 'email', 'list', 'img'),
- 'list' => array('*'),
- 'url' => array('b', 'i', 'u', 'color', 'colour', 'img'),
+ '*' => array('b', 'i', 'u', 'color', 'colour', 'url', 'email', 'list', 'img'),
+ 'list' => array('*'),
+ 'url' => array('b', 'i', 'u', 'color', 'colour', 'img'),
'email' => array('b', 'i', 'u', 'color', 'colour', 'img'),
- 'img' => array()
+ 'img' => array()
);
// Tags we can automatically fix bad nesting
$tags_fix = array('quote', 'b', 'i', 'u', 'color', 'colour', 'url', 'email', 'h');
@@ -595,33 +595,33 @@ function handle_url_tag($url, $link = '', $bbcode = false)
$full_url = 'http://'.$full_url;
else if (strpos($url, 'ftp.') === 0) // Else if it starts with ftp, we add ftp://
$full_url = 'ftp://'.$full_url;
- else if (!preg_match('#^([a-z0-9]{3,6})://#', $url)) // Else if it doesn't start with abcdef://, we add http://
+ else if (!preg_match('#^([a-z0-9]{3,6})://#', $url)) // Else if it doesn't start with abcdef://, we add http://
$full_url = 'http://'.$full_url;
if (defined('FORUM_SUPPORT_PCRE_UNICODE') && defined('FORUM_ENABLE_IDNA'))
{
static $idn;
- static $cached_encoded_urls = null;
-
- if (is_null($cached_encoded_urls))
- $cached_encoded_urls = array();
-
- // Check in cache
- $cache_key = md5($full_url);
- if (isset($cached_encoded_urls[$cache_key]))
- $full_url = $cached_encoded_urls[$cache_key];
- else
- {
- if(!isset($idn))
- {
- $idn = new idna_convert();
- $idn->set_parameter('encoding', 'utf8');
- $idn->set_parameter('strict', false);
- }
-
- $full_url = $idn->encode($full_url);
- $cached_encoded_urls[$cache_key] = $full_url;
- }
+ static $cached_encoded_urls = null;
+
+ if (is_null($cached_encoded_urls))
+ $cached_encoded_urls = array();
+
+ // Check in cache
+ $cache_key = md5($full_url);
+ if (isset($cached_encoded_urls[$cache_key]))
+ $full_url = $cached_encoded_urls[$cache_key];
+ else
+ {
+ if(!isset($idn))
+ {
+ $idn = new idna_convert();
+ $idn->set_parameter('encoding', 'utf8');
+ $idn->set_parameter('strict', false);
+ }
+
+ $full_url = $idn->encode($full_url);
+ $cached_encoded_urls[$cache_key] = $full_url;
+ }
}
// Ok, not very pretty :-)
View
4 include/search_functions.php
@@ -78,7 +78,7 @@ function create_search_cache($keywords, $author, $search_in = false, $forum = ar
// Remove any words that are not indexed
$keywords_array = array_filter($keywords_array, 'validate_search_word');
- if (empty($keywords_array))
+ if (empty($keywords_array))
no_search_results();
$word_count = 0;
@@ -872,7 +872,7 @@ function generate_search_crumbs($action = null)
case 'show_user_topics':
$forum_page['crumbs'][] = sprintf($lang_search['Topics by'], $search_set[0]['poster']);
$forum_page['items_info'] = generate_items_info($lang_search['Topics found'], ($forum_page['start_from'] + 1), $num_hits);
- $forum_page['main_head_options']['user_posts'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_posts'], $search_id).'">'.sprintf($lang_search['Posts by'], forum_htmlencode($search_set[0]['poster'])).'</a></span>';
+ $forum_page['main_head_options']['user_posts'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_user_posts'], $search_id).'">'.sprintf($lang_search['Posts by'], forum_htmlencode($search_set[0]['poster'])).'</a></span>';
$forum_page['main_head_options']['defined_search'] = '<span'.(empty($forum_page['main_head_options']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_search['User defined search'].'</a></span>';
break;
View
4 include/url/File_based/forum_urls.php
@@ -14,8 +14,8 @@
// These are the simple file based SEF URLs
$forum_url = array(
- 'insertion_find' => '.html',
- 'insertion_replace' => '-$1.html',
+ 'insertion_find' => '.html',
+ 'insertion_replace' => '-$1.html',
'change_email' => 'change-email$1.html',
'change_email_key' => 'change-email$1-$2.html',
'change_password' => 'change-password$1.html',
View
4 include/url/File_based_(fancy)/forum_urls.php
@@ -15,8 +15,8 @@
// These are the "fancy" file based SEF URLs
$forum_url = array(
- 'insertion_find' => '.html',
- 'insertion_replace' => '-$1.html',
+ 'insertion_find' => '.html',
+ 'insertion_replace' => '-$1.html',
'change_email' => 'change-email$1.html',
'change_email_key' => 'change-email$1-$2.html',
'change_password' => 'change-password$1.html',
View
4 lang/English/admin_ext.php
@@ -21,8 +21,8 @@
'Extension error' => 'Error',
'Extension loading error' => 'Loading of extension "%s" failed.',
'Illegal ID' => 'The ID must contain only lowercase alphanumeric characters (a-z and 0-9) and the underscore character (_).',
-'Maxtestedon error' => 'This extension is not compatible with your PunBB version.',
-'Maxtestedon warning' => 'This extension has not been explicitly tested on your PunBB version and might therefore not be compatible with your current setup.',
+'Maxtestedon error' => 'This extension is not compatible with your PunBB version.',
+'Maxtestedon warning' => 'This extension has not been explicitly tested on your PunBB version and might therefore not be compatible with your current setup.',
'Missing manifest' => 'Missing manifest.xml.',
'Failed parse manifest' => 'Unable to parse manifest.xml.',
'extension root error' => 'Root element extension is malformed or missing.',
View
2 lang/English/admin_reports.php
@@ -18,6 +18,6 @@
'Read reports heading' => 'Last 10 reports marked as read',
'No reports' => 'There are no reports either read or unread for you to view.',
'Marked read by' => 'Read %s by %s',
-'Post' => 'Post #%s',
+'Post' => 'Post #%s',
);
View
2 lang/English/admin_users.php
@@ -76,7 +76,7 @@
'Ban admin message' => 'One of the selected users is an administrator and can\'t be banned. If you want to ban an administrator, you must first move him/her to any other user group.',
'Users banned' => 'Users banned.',
'Mass ban info' => 'You may set a message to be displayed to the banned users and set the date their bans are to expire.',
-'Ban settings legend' => 'Ban users',
+'Ban settings legend' => 'Ban users',
'Change group head' => 'Move the selected users to a new group',
'User groups updated' => 'User groups updated.',
'Move users legend' => 'Move users',
View
22 lang/English/common.php
@@ -115,13 +115,13 @@
// Stuff for the navigator (top of every page)
'Index' => 'Index',
'User list' => 'User list',
-'Rules' => 'Rules',
-'Search' => 'Search',
-'Register' => 'Register',
+'Rules' => 'Rules',
+'Search' => 'Search',
+'Register' => 'Register',
'register' => 'register',
-'Login' => 'Login',
+'Login' => 'Login',
'login' => 'login',
-'Not logged in' => 'You are not logged in.',
+'Not logged in' => 'You are not logged in.',
'Profile' => 'Profile',
'Logout' => 'Logout',
'Logged in as' => 'Logged in as %s.',
@@ -155,18 +155,18 @@
'Skip to content' => 'Skip to forum content',
// Debug information
-'Querytime' => 'Generated in %1$s seconds (%2$s%% PHP - %3$s%% DB) with %4$s queries',
+'Querytime' => 'Generated in %1$s seconds (%2$s%% PHP - %3$s%% DB) with %4$s queries',
'Debug table' => 'Debug information',
'Debug summary' => 'Database query performance information',
'Query times' => 'Time (s)',
'Query' => 'Query',
'Total query time' => 'Total query time',
// Error message
-'Forum error header' => 'Sorry! The page could not be loaded.',
-'Forum error description' => 'This is probably a temporary error. Just refresh the page and retry. If problem continues, please check back in 5-10 minutes.',
-'Forum error location' => 'The error occurred on line %1$s in %2$s',
-'Forum error db reported' => 'Database reported:',
-'Forum error db query' => 'Failed query:',
+'Forum error header' => 'Sorry! The page could not be loaded.',
+'Forum error description' => 'This is probably a temporary error. Just refresh the page and retry. If problem continues, please check back in 5-10 minutes.',
+'Forum error location' => 'The error occurred on line %1$s in %2$s',
+'Forum error db reported' => 'Database reported:',
+'Forum error db query' => 'Failed query:',
);
View
2 lang/English/index.php
@@ -3,7 +3,7 @@
// Language definitions used in index.php
$lang_index = array(
-'Moderated by' => 'Moderated by %s',
+'Moderated by' => 'Moderated by %s',
'Link to' => 'Link to %s', // As in "Link to http://punbb.informer.com/"
'Category subtitle' => '%1$s in this category with details of %2$s',
'Forums' => 'Forums',
View
4 lang/English/misc.php
@@ -41,8 +41,8 @@
'Select' => 'Select', // the header of a column of checkboxes
'Move' => 'Move',
'Merge' => 'Merge',
-'Open' => 'Open',
-'Close' => 'Close',
+'Open' => 'Open',
+'Close' => 'Close',
'Select all' => 'Select all',
View
10 lang/English/profile.php
@@ -31,7 +31,7 @@
// Avatar stuff
'Avatar welcome' => 'Set an avatar image to enhance your forum identity',
-'Avatar welcome user' => 'Set an avatar image to enhance %s\'s forum identity',
+'Avatar welcome user' => 'Set an avatar image to enhance %s\'s forum identity',
'Avatar deleted redirect' => 'Avatar deleted.',
'Avatars disabled' => 'The administrator has disabled avatar support.',
'No file' => 'You did not select a file for upload.',
@@ -83,7 +83,7 @@
'Note' => 'Note',
'Posts' => 'Posts',
'Last post' => 'Last post',
-'Last visit' => 'Last visit',
+'Last visit' => 'Last visit',
'Send forum e-mail' => 'Send forum email',
'Contact info' => 'Contact information',
'Jabber' => 'Jabber',
@@ -115,9 +115,9 @@
'Settings welcome' => 'Modify your localization, display and email settings',
'Settings welcome user' => 'Modify %s\'s localization, display and email settings',
'Timezone info' => 'Must be set for correct time display.',
-'Time format' => 'Time format',
-'Default' => 'default',
-'Date format' => 'Date format',
+'Time format' => 'Time format',
+'Default' => 'default',
+'Date format' => 'Date format',
'Display settings' => 'Display settings',
'Styles' => 'Available styles',
'Image display' => 'Image display',
View
2 lang/English/url_replace.php
@@ -1,7 +1,7 @@
<?php
// The contents of this file are very much inspired by the file i18n-ascii.txt
-// from the CMS software Textpattern (http://textpattern.com/).
+// from the CMS software Textpattern (http://textpattern.com/).
// Replacements done by sef_friendly function
$lang_url_replace = array(
View
32 profile.php
@@ -336,7 +336,7 @@
<div id="req-msg" class="req-warn ct-box error-box">
<p class="important"><?php echo $lang_common['Required warn']; ?></p>
</div>
- <form id="afocus" class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>" autocomplete="off">
+ <form id="afocus" class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>" autocomplete="off">
<div class="hidden">
<?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?>
</div>
@@ -972,11 +972,11 @@ function extract_elements($allowed_elements)
}
// Add http:// if the URL doesn't contain it or https:// already
- if ($form['url'] != '' && strpos(strtolower($form['url']), 'http://') !== 0 && strpos(strtolower($form['url']), 'https://') !== 0)
+ if ($form['url'] != '' && strpos(strtolower($form['url']), 'http://') !== 0 && strpos(strtolower($form['url']), 'https://') !== 0)
$form['url'] = 'http://'.$form['url'];
// Add http:// if the LinkedIn doesn't contain it or https:// already
- if ($form['linkedin'] != '' && strpos(strtolower($form['linkedin']), 'http://') !== 0 && strpos(strtolower($form['linkedin']), 'https://') !== 0)
+ if ($form['linkedin'] != '' && strpos(strtolower($form['linkedin']), 'http://') !== 0 && strpos(strtolower($form['linkedin']), 'https://') !== 0)
$form['linkedin'] = 'http://'.$form['linkedin'];
// If the ICQ UIN contains anything other than digits it's invalid
@@ -1392,7 +1392,7 @@ function extract_elements($allowed_elements)
($hook = get_hook('pf_view_details_selected')) ? eval($hook) : null;
- $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' : ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
+ $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' : ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
if ($forum_config['o_avatars'] == '1')
{
@@ -1623,8 +1623,8 @@ function extract_elements($allowed_elements)
// Setup navigation menu
$forum_page['main_menu'] = array();
- $forum_page['main_menu']['about'] = '<li class="first-item'.(($section == 'about') ? ' active' : '').'"><a href="'.forum_link($forum_url['profile_about'], $id).'"><span>'.$lang_profile['Section about'].'</span></a></li>';
- $forum_page['main_menu']['identity'] = '<li'.(($section == 'identity') ? ' class="active"' : '').'><a href="'.forum_link($forum_url['profile_identity'], $id).'"><span>'.$lang_profile['Section identity'].'</span></a></li>';
+ $forum_page['main_menu']['about'] = '<li class="first-item'.(($section == 'about') ? ' active' : '').'"><a href="'.forum_link($forum_url['profile_about'], $id).'"><span>'.$lang_profile['Section about'].'</span></a></li>';
+ $forum_page['main_menu']['identity'] = '<li'.(($section == 'identity') ? ' class="active"' : '').'><a href="'.forum_link($forum_url['profile_identity'], $id).'"><span>'.$lang_profile['Section identity'].'</span></a></li>';
$forum_page['main_menu']['settings'] = '<li'.(($section == 'settings') ? ' class="active"' : '').'><a href="'.forum_link($forum_url['profile_settings'], $id).'"><span>'.$lang_profile['Section settings'].'</span></a></li>';
if ($forum_config['o_signatures'] == '1')
@@ -1653,7 +1653,7 @@ function extract_elements($allowed_elements)
($hook = get_hook('pf_change_details_about_selected')) ? eval($hook) : null;
- $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' : ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
+ $forum_page['user_ident']['username'] = '<li class="username'.(($user['realname'] =='') ? ' fn nickname' : ' nickname').'"><strong>'.forum_htmlencode($user['username']).'</strong></li>';
if ($forum_config['o_avatars'] == '1')
{
@@ -1681,7 +1681,7 @@ function extract_elements($allowed_elements)
$forum_page['user_info']['lastvisit'] = '<li><span>'.$lang_profile['Last visit'].': <strong> '.format_time($user['last_visit']).'</strong></span></li>';
$forum_page['user_info']['lastpost'] = '<li><span>'.$lang_profile['Last post'].': <strong> '.format_time($user['last_post']).'</strong></span></li>';
- if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])
+ if ($forum_config['o_show_post_count'] == '1' || $forum_user['is_admmod'])
$forum_page['user_info']['posts'] = '<li><span>'.$lang_profile['Posts'].': <strong>'.forum_number_format($user['num_posts']).'</strong></span></li>';
else
$forum_page['user_private']['posts'] = '<li><span>'.$lang_profile['Posts'].': <strong>'.forum_number_format($user['num_posts']).'</strong></span></li>';
@@ -1816,10 +1816,10 @@ function extract_elements($allowed_elements)
if (($forum_page['own_profile'] || $forum_user['g_id'] == FORUM_ADMIN) && $forum_config['o_subscriptions'] == '1')
{
// Topic subscriptions
- $forum_page['user_activity']['search_subs'] = '<li'.(empty($forum_page['user_activity']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_subscriptions'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['View your subscriptions'] : sprintf($lang_profile['View user subscriptions'], forum_htmlencode($user['username']))).'</a></li>';
+ $forum_page['user_activity']['search_subs'] = '<li'.(empty($forum_page['user_activity']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_subscriptions'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['View your subscriptions'] : sprintf($lang_profile['View user subscriptions'], forum_htmlencode($user['username']))).'</a></li>';
- // Forum subscriptions
- $forum_page['user_activity']['search_forum_subs'] = '<li'.(empty($forum_page['user_activity']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_forum_subscriptions'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['View your forum subscriptions'] : sprintf($lang_profile['View user forum subscriptions'], forum_htmlencode($user['username']))).'</a></li>';
+ // Forum subscriptions
+ $forum_page['user_activity']['search_forum_subs'] = '<li'.(empty($forum_page['user_activity']) ? ' class="first-item"' : '').'><a href="'.forum_link($forum_url['search_forum_subscriptions'], $id).'">'.(($forum_page['own_profile']) ? $lang_profile['View your forum subscriptions'] : sprintf($lang_profile['View user forum subscriptions'], forum_htmlencode($user['username']))).'</a></li>';
}
// Setup user options
@@ -2199,7 +2199,7 @@ function extract_elements($allowed_elements)
<h2 class="hn"><span><?php printf(($forum_page['own_profile']) ? $lang_profile['Settings welcome'] : $lang_profile['Settings welcome user'], forum_htmlencode($user['username'])) ?></span></h2>
</div>
<div class="main-content main-frm">
- <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>">
+ <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>">
<div class="hidden">
<?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?>
</div>
@@ -2709,8 +2709,8 @@ function extract_elements($allowed_elements)
</ul>
</div>
<div id="req-msg" class="req-warn ct-box info-box">
- <p class="important"><?php echo $lang_profile['No upload warn'] ?></p>
- </div>
+ <p class="important"><?php echo $lang_profile['No upload warn'] ?></p>
+ </div>
<fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>">
<legend class="group-legend"><strong><?php echo $lang_profile['Avatar'] ?></strong></legend>
<?php ($hook = get_hook('pf_change_details_avatar_pre_cur_avatar_info')) ? eval($hook) : null; ?>
@@ -2849,8 +2849,8 @@ function extract_elements($allowed_elements)
<?php ($hook = get_hook('pf_change_details_admin_pre_group_membership_submit')) ? eval($hook) : null; ?>
<div class="sf-set button-set set<?php echo ++$forum_page['item_count'] ?>">
<div class="sf-box text">
- <span class="submit primary"><input type="submit" name="update_group_membership" value="<?php echo $lang_profile['Update groups'] ?>" /></span>
- </div>
+ <span class="submit primary"><input type="submit" name="update_group_membership" value="<?php echo $lang_profile['Update groups'] ?>" /></span>
+ </div>
</div>
<?php
View
2 rewrite.php
@@ -32,7 +32,7 @@
// We determine the path to the script, since we need to separate the path from the data to be rewritten
$path_to_script = str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME']));
if (substr($path_to_script, -1) != '/')
- $path_to_script = $path_to_script.'/';
+ $path_to_script = $path_to_script.'/';
// We create our own request URI with the path removed and only the parts to rewrite included
$request_uri = substr(urldecode($_SERVER['REQUEST_URI']), strlen($path_to_script));
View
4 search.php
@@ -620,7 +620,7 @@
<div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
<div class="sf-box text">
<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_search['Keyword search'] ?></span></label><br />
- <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="keywords" size="40" maxlength="100" <?php echo ($advanced_search) ? '' : 'required' ?> /></span>
+ <span class="fld-input"><input type="text" id="fld<?php echo $forum_page['fld_count'] ?>" name="keywords" size="40" maxlength="100" <?php echo ($advanced_search) ? '' : 'required' ?> /></span>
</div>
</div>
<?php ($hook = get_hook('se_pre_author')) ? eval($hook) : null; ?>
@@ -694,7 +694,7 @@
$cur_category = $cur_forum['cid'];
}
- echo "\t\t\t\t\t\t\t\t".'<div class="checklist-item"><span class="fld-input"><input type="checkbox" id="fld'.(++$forum_page['fld_count']).'" name="forum[]" value="'.$cur_forum['fid'].'" /></span> <label for="fld'.$forum_page['fld_count'].'">'.forum_htmlencode($cur_forum['forum_name']).'</label></div>'."\n";
+ echo "\t\t\t\t\t\t\t\t".'<div class="checklist-item"><span class="fld-input"><input type="checkbox" id="fld'.(++$forum_page['fld_count']).'" name="forum[]" value="'.$cur_forum['fid'].'" /></span> <label for="fld'.$forum_page['fld_count'].'">'.forum_htmlencode($cur_forum['forum_name']).'</label></div>'."\n";
}
echo "\t\t\t\t\t\t\t".'</fieldset>'."\n";
View
12 style/Oxygen/Oxygen.css
@@ -1135,7 +1135,7 @@ li.info-lastpost cite {
.item-nav,
.item-nav a,
-.item-nav span {
+.item-nav span {
white-space: nowrap;
font-style: normal;
}
@@ -1241,8 +1241,8 @@ F - MAIN CONTENT - FORMS
select {
height: 25px;
*height: auto;
- line-height: 25px;
- padding-left: 3px;
+ line-height: 25px;
+ padding-left: 3px;
}
optgroup {
@@ -1425,13 +1425,13 @@ button[disabled]:active {
input[type="radio"] {
vertical-align: middle;
- bottom: 1px;
+ bottom: 1px;
}
input[type="checkbox"] {
vertical-align: middle;
- bottom: 1px;
+ bottom: 1px;
}
table input[type="checkbox"] {
@@ -1673,7 +1673,7 @@ textarea {
display: block;
}
-.required label span {
+.required label span {
font-weight: bold;
}
View
2 style/Oxygen/Oxygen_cs.css
@@ -418,7 +418,7 @@ label,
.main-foot {
color: #fff;
border-color: #4A86C1;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
}
#brd-announcement h1 {
View
2 viewtopic.php
@@ -175,7 +175,7 @@
$forum_page['page'] = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $forum_page['num_pages']) ? 1 : $_GET['p'];
$forum_page['start_from'] = $forum_user['disp_posts'] * ($forum_page['page'] - 1);
$forum_page['finish_at'] = min(($forum_page['start_from'] + $forum_user['disp_posts']), ($cur_topic['num_replies'] + 1));
-$forum_page['items_info'] = generate_items_info($lang_topic['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));
+$forum_page['items_info'] = generate_items_info($lang_topic['Posts'], ($forum_page['start_from'] + 1), ($cur_topic['num_replies'] + 1));
($hook = get_hook('vt_modify_page_details')) ? eval($hook) : null;

0 comments on commit d537dde

Please sign in to comment.
Something went wrong with that request. Please try again.