Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-07-29 20:24:05 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2013-07-29 20:24:05 +0400
commite2d3225e5aff343bf62b6dbb62eb3526e525cb6b (patch)
tree7485ee0028f5cd5c3b39decfe4f23d6aa661d83d /lib/util.php
parenta3ff77156789a4eaf0e205aa93b168d399e011ac (diff)
implement a platform independent version of basename
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 981b05b2b46..004470908d1 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -892,4 +892,10 @@ class OC_Util {
return $value;
}
+
+ public static function basename($file)
+ {
+ $t = explode('/', $file);
+ return array_pop($t);
+ }
}