Browse Source

Fatal error: Call to undefined function get_my_posts()

added a "get_my_posts()" function which return post to the viewer as an
object
pull/146/head
irgaabd 10 years ago
parent
commit
27159216dd
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      system/admin/admin.php

+ 9
- 0
system/admin/admin.php View File

@ -404,6 +404,15 @@ function get_feed($feed_url, $credit)
} }
} }
// Get recent posts by user
function get_my_posts()
{
if (isset($_SESSION[config("site.url")]['user'])) {
$posts = get_profile($_SESSION[config("site.url")]['user'], 1, 5);
return $posts;
}
}
// Get recent posts by user // Get recent posts by user
function get_recent_posts() function get_recent_posts()
{ {


Loading…
Cancel
Save