mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 11:38:34 -04:00
Avoid "PHP Strict Standards" error
A "Only variables should be passed by reference" error was raised in the extension->getFileUrl() method.
This commit is contained in:
1 parent
13cf8b5f9f
commit
2039710d12
1 file changed
+1
-1
@@ -159,7 +159,7 @@ class Minz_Extension {
|
||||
* @return the url corresponding to the file.
|
||||
*/
|
||||
public function getFileUrl($filename, $type) {
|
||||
$dir = end(explode('/', $this->path));
|
||||
$dir = substr(strrchr($this->path, '/'), 1);
|
||||
$file_name_url = urlencode($dir . '/static/' . $filename);
|
||||
|
||||
$absolute_path = $this->path . '/static/' . $filename;
|
||||
|
||||
Reference in new issue
Block a user