summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-15 13:43:05 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-01-15 13:43:05 +0100
commit2039710d12f8f705b7eb9233ae3cc130f6e4e7c9 (patch)
tree49e981314e6fa684b7c74e8c5128db926c4da111 /lib
parent13cf8b5f9f22a50bba5d1223174407abb1c1d94c (diff)
Avoid "PHP Strict Standards" error
A "Only variables should be passed by reference" error was raised in the extension->getFileUrl() method.
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Extension.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php
index 5069362b5..d7ee8fe81 100644
--- a/lib/Minz/Extension.php
+++ b/lib/Minz/Extension.php
@@ -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;