- /**
- * Autoloader
- *
- * Loads our classes if they're requested.
- *
- * @param string $cls Class requested
- *
- * @return boolean hook return
- */
- function onAutoload($cls)
- {
- switch ($cls)
- {
- case 'RemoteprofileAction':
- case 'RemoteProfileAction':
- require_once dirname(__FILE__) . '/remoteprofileaction.php';
- return false;
- default:
- return true;
- }
- }
-
- /**
- * Add ModPlus-related paths to the router table
- *
- * Hook for RouterInitialized event.
- *
- * @param Net_URL_Mapper $m URL mapper
- *
- * @return boolean hook return
- */
- function onStartInitializeRouter($m)
- {
- $m->connect('user/remote/:id',
- array('action' => 'remoteprofile'),
- array('id' => '[\d]+'));
-
+ public function onEndShowStylesheets(Action $action) {
+ $action->cssLink($this->path('css/modplus.css'));