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

Problem of with SkipObjects #120

Open
Oros42 opened this issue Feb 6, 2017 · 0 comments
Open

Problem of with SkipObjects #120

Oros42 opened this issue Feb 6, 2017 · 0 comments

Comments

@Oros42
Copy link

Oros42 commented Feb 6, 2017

If your photos folder contains this :
pic1.jpg
pic2.jpg
pic3_to_skip.jpg
pic4.jpg

And $SkipObjects=array('pic3_to_skip.jpg');
Then MinigalNano display only pic1.jpg and pic2.jpg. Not pic4.jpg.

Source of the problem, in index.php line 186 :

        while (false !== ($file = readdir($handle)) && !in_array($file, $SkipObjects)) {

Should be replace by :

         while (false !== ($file = readdir($handle))) {
                if(in_array($file, $SkipObjects)){
                        continue;
                }
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

1 participant