ErrorException [ Fatal Error ]: Call to undefined function get_slug()

APPPATH/classes/controller/profiles.php [ 120 ]

115 
116 
117     if ($profile['days']<0) $profile['days'] = 365 + $profile['days'];
118     $profile['keys'] = Model_Useful::maybe_unserialize($profile['keys']);
119     if (isset($profile['url']) && !empty($profile['url'])) $profile['original_url'] = $profile['url'];
120     if (empty($profile['slug'])) $profile['slug'] = get_slug($profile['name']);
121     $profile['url'] = Route::url('profile', array('slug'=>$profile['slug'], 'id'=>$profile['id']), true);
122 
123 
124     $profile['co_name'] = $_profile->country->name;
125     $profile['co_aname'] = $_profile->country->alt_name();
  1. {PHP internal call} » Kohana_Core::shutdown_handler()

Environment