]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / include / text.php
index 05801d024c6dcb7c1a59d07bde902fe6fe35a637..8d3b6a8050199ec5ec4d78ea0982af902e3a2316 100644 (file)
@@ -369,7 +369,7 @@ if(! function_exists('paginate')) {
  * @param App $a App instance
  * @return string html for pagination #FIXME remove html
  */
-function paginate(&$a) {
+function paginate(App &$a) {
 
        $data = paginate_data($a);
        $tpl = get_markup_template("paginate.tpl");
@@ -1367,7 +1367,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
        // map
        if(strpos($s,'<div class="map">') !== false && $item['coord']) {
                $x = generate_map(trim($item['coord']));
-               if($x) {
+               if ($x) {
                        $s = preg_replace('/\<div class\=\"map\"\>/','$0' . $x,$s);
                }
        }