/**
* Hook for RouterInitialized event.
*
- * @param Net_URL_Mapper $m path-to-action mapper
+ * @param URLMapper $m path-to-action mapper
* @return boolean hook return
*/
- function onRouterInitialized($m)
+ public function onRouterInitialized(URLMapper $m)
{
$m->connect('favorited/:slice',
array('action' => 'favoritedslice'),
return true;
}
- /**
- * Automatically load the actions and libraries used by the plugin
- *
- * @param Class $cls the class
- *
- * @return boolean hook return
- *
- */
- function onAutoload($cls)
- {
- $base = dirname(__FILE__);
- $lower = strtolower($cls);
- switch ($lower) {
- case 'favoritedsliceaction':
- require_once "$base/$lower.php";
- return false;
- default:
- return true;
- }
- }
-
function onSlicedFavoritesGetSettings($slice, &$data)
{
if (isset($this->slices[$slice])) {
$url = 'http://status.net/wiki/Plugin:SlicedFavorites';
$versions[] = array('name' => 'SlicedFavorites',
- 'version' => STATUSNET_VERSION,
+ 'version' => GNUSOCIAL_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>