Bug in function create_tabs() in functions.inc.php (in 1.4.8) Bug in function create_tabs() in functions.inc.php (in 1.4.8)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bug in function create_tabs() in functions.inc.php (in 1.4.8)

Started by danuvius, June 23, 2006, 02:40:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danuvius

During making the Blix Theme I found the following bug. I added the function theme_create_tabs in my theme.php and my tabs dissapeared so after a few minute I found the following bug in include/functions.inc.php. Solution:

Line 472 change

        if (function_exists('theme_create_tabs')) {
            theme_create_tabs($items, $curr_page, $total_pages, $template);
                return;
        }

into:

        if (function_exists('theme_create_tabs')) {
            return theme_create_tabs($items, $curr_page, $total_pages, $template);
        }

Paver

You are correct.  I didn't notice that when I was looking at that function some time ago.

In analogy with the rest of the function, do you think it should be instead:
        if (function_exists('theme_create_tabs')) {
            $tabs = theme_create_tabs($items, $curr_page, $total_pages, $template);
            return $tabs.$template['tab_trailer'];
        }


Hmm... maybe not.   It should be up to the theme coder to decide what should be displayed.

Moving to bugs board.

Paver

Original fix proposed by danuvius committed to stable & devel.  Will be in next version (1.4.9).

Yetio

Thanks a lot... it is working fine now...  :)
Do you also have an easy solution for the film strip?

Joachim Müller

This is not a support thread. You mustn't ask questions here, particularly not ask unrelated questions.