Closed (fixed)
Project:
Libraries API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2010 at 07:22 UTC
Updated:
24 Nov 2013 at 06:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
good_man commentedmissing to omit the trailing slash in the previous patch.
Comment #2
tstoecklerFirst of all: thanks very much for the effort.
The variable default is actually correct. The other part I'll have to look into more deeply.
Attached is a patch for the defaults thing. I will commit that in a minute.
Comment #3
tstoecklerhttp://drupal.org/cvs?commit=464996
Marking needs work for the other change.
@good_man: Please note that your patch does not abide by the coding standards. Pure code-style review follows:
Renaming $nomask to $exclude is unnecessary.
Renaming $dir to $search is unnecessary.
Comment has trailing whitespace. Also it doesn't make much sense to put in a comment referencing code that *used to be there*.
Don't use tabs. Use spaces instead.
Regarding the actual code:
I hadn't heard of glob() yet, but while the PHP Documentation generally makes it look like it would be better than open_dir() / close_dir(), what makes me wonder is that this code is basically a direct copy of Drupal 7's file_scan_directory() (http://api.drupal.org/api/drupal/includes--file.inc/function/file_scan_d...), and I cannot imagine that the team of core devs would neglect to use this function for no reason.
Powered by Dreditor.
Comment #4
tstoecklerWell, just searching on drupal.org for "glob()" (http://drupal.org/search/apachesolr_multisitesearch/glob%28%29), reveals that the following two lines from the PHP documentation make this a no-go for us:
Thus, marking fixed, because this issue actually had a commit.
Comment #5
sunyup, if glob() would be an option, then Drupal core would use it already.
Comment #6
good_man commentedI thought it's because it's some how a hidden function, that's why they maybe didn't notice that. Anyhow, I really don't know what's going on with the tabs issue on my kate editor! will have to take a second look at it's config. Re. variables renaming, I think it's not neccessary now as we are ignoring the whole new section.
Thanks guys, appreciate your time!