Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7042 now.

PHP Notice: in file /includes/functions_content.php on line 825: Undefined index: KB (fix completed in vcs)

It's displayed when viewing a PM with an attachment, probably it's displayed also in topics.

Solution:
Open includes/functions_content.php

Find:
Code: Select all
      $size_lang = ($filesize >= 1048576) ? $user->lang['MB'] : ( ($filesize >= 1024) ? $user->lang['KB'] : $user->lang['BYTES'] );


Replace with:
Code: Select all
      $size_lang = ($filesize >= 1048576) ? $user->lang['MiB'] : ( ($filesize >= 1024) ? $user->lang['KiB'] : $user->lang['BYTES'] );

Comments / History

Posted by LEW21 (QA Team) on Feb 28th 2008, 19:10

Replace with:
Code: Select all
      $size_lang = ($filesize >= 1048576) ? $user->lang['MIB'] : ( ($filesize >= 1024) ? $user->lang['KIB'] : $user->lang['BYTES'] );


I forgot that it's written with big I :P

Posted by Acyd Burn (Server Manager) on Feb 28th 2008, 19:52

Erm, did you remove the language entry?

Code: Select all
   'KB'               => 'KB',
   'KIB'               => 'KiB',


;) It should be at least there - not using it is a bug of course (also on another location where i missed it).

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Feb 28th 2008, 19:55

Linked ticket with changeset: r8420

Action performed by Anonymous (I am too lazy to register) on Feb 28th 2008, 19:55

Posted by LEW21 (QA Team) on Feb 28th 2008, 19:56

I was testing it with not updated Polish Language Package, in which I've just replaced KB with KIB :P

Linked ticket with changeset: r8421

Action performed by Anonymous (I am too lazy to register) on Feb 28th 2008, 19:57

Ticket details

Related SVN changesets