mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
17 lines
237 B
PHP
17 lines
237 B
PHP
|
<?php
|
||
|
|
||
|
namespace OCA\Bookmarks\Controller\Lib;
|
||
|
|
||
|
class Helper {
|
||
|
|
||
|
static function getDomainWithoutExt($name) {
|
||
|
$pos = strripos($name, '.');
|
||
|
if ($pos === false) {
|
||
|
return $name;
|
||
|
} else {
|
||
|
return substr($name, 0, $pos);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|