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:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.