Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated code in render.inc.php #12

Open
jeff1985 opened this issue Feb 12, 2017 · 2 comments
Open

Duplicated code in render.inc.php #12

jeff1985 opened this issue Feb 12, 2017 · 2 comments

Comments

@jeff1985
Copy link

Could you explain this lines, please?

$href = preg_replace(
        array('/=$/', '/=&/'),
        array('', '&'),
        $href
);

I have found that those lines are used multiple times in render.inc.php but not sure why you need this and what this does?

@onassar
Copy link
Owner

onassar commented Feb 13, 2017

I actually can't remember. It's been a few years. I'd log out the $href value before and after that call and see what you notice.

@Nick-Hopps
Copy link

In render.inc.php

// if there are pages to be shown
if ( $pages > 1 ) {

Is this "1" should be "0", I change it to 0 and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants