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

How to change the Save Path and Filename of the Favicons? #2

Closed
raitman005 opened this issue Jan 28, 2020 · 5 comments
Closed

How to change the Save Path and Filename of the Favicons? #2

raitman005 opened this issue Jan 28, 2020 · 5 comments
Labels
question Further information is requested

Comments

@raitman005
Copy link

Hello, What if i want to use the file location dir of the favicon instead of the domain name on saving the file, where do i change it in the file?
domain/favicon href value.png

@gaffling
Copy link
Owner

Hello raitman005,

thanks for getting in touch. The filename is generated in line 119:

$filePath = preg_replace('#\/\/#', '/', $directory.'/'.$domain.'.png');

there you can change it in what you like, but if you will save the favicon image in a subfolder don't forget to mkdir() it before you save ;-)

Best Regards

@gaffling gaffling added the question Further information is requested label Jan 28, 2020
@raitman005

This comment has been minimized.

@gaffling gaffling changed the title New on using this. How to change the Save Path and Filename of the Favicons? Jan 29, 2020
@LeeThompson
Copy link
Contributor

With #5 I'm implementing a switch to allow setting the local path (--path or -p).

@LeeThompson
Copy link
Contributor

LeeThompson commented May 25, 2023

With the current version you can set the path on the command line with --path=PATH (Can be absolute or relative). In web-mode there isn't an easy method (yet), you'll need to edit the PHP and change the define('DEFAULT_LOCAL_PATH', "./"); to the path you want to use.

If you don't want to change it there, change:
setConfiguration("files","local_path",DEFAULT_LOCAL_PATH);
to
setConfiguration("files","local_path","your path");

@gaffling
Copy link
Owner

@LeeThompson You fixed this already, so I close this

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

No branches or pull requests

3 participants