diff options
Diffstat (limited to 'utils/rockbox_api/functions.php')
-rwxr-xr-x | utils/rockbox_api/functions.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/rockbox_api/functions.php b/utils/rockbox_api/functions.php index 0f34fc69e0..57a7c99b13 100755 --- a/utils/rockbox_api/functions.php +++ b/utils/rockbox_api/functions.php @@ -334,4 +334,11 @@ function do_markup($data) return $data; } + +function get_tpl_part($search, $haystack) +{ + $tpl = array(); + ereg($search[0].".*".$search[1], $haystack, $tpl); + return str_replace(array($search[0], $search[1]), "", $tpl[0]); +} ?> |