forked from GNUsocial/gnu-social
Stylesheet event now removed of StatusNet-remnants
This commit is contained in:
@@ -153,7 +153,7 @@ class DirectoryPlugin extends Plugin
|
||||
*
|
||||
* @return boolean hook flag
|
||||
*/
|
||||
function onEndShowStatusNetStyles($action)
|
||||
public function onEndShowStylesheets(Action $action)
|
||||
{
|
||||
if (in_array(
|
||||
$action->trimmed('action'),
|
||||
|
@@ -27,7 +27,7 @@
|
||||
* @link http://status.net/
|
||||
*/
|
||||
|
||||
if (!defined('STATUSNET') && !defined('LACONICA')) {
|
||||
if (!defined('STATUSNET')) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
}
|
||||
}
|
||||
|
||||
function onStartShowStatusNetStyles($action)
|
||||
public function onStartShowStylesheets(Action $action)
|
||||
{
|
||||
if (!$this->serveMobile) {
|
||||
return true;
|
||||
@@ -263,8 +263,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
}
|
||||
|
||||
// Allow other plugins to load their styles.
|
||||
Event::handle('EndShowStatusNetStyles', array($action));
|
||||
Event::handle('EndShowLaconicaStyles', array($action));
|
||||
Event::handle('EndShowStylesheets', array($action));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ class ModPlusPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action) {
|
||||
public function onEndShowStylesheets(Action $action) {
|
||||
$action->cssLink($this->path('modplus.css'));
|
||||
return true;
|
||||
}
|
||||
|
@@ -518,7 +518,7 @@ class OStatusPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action) {
|
||||
public function onEndShowStylesheets(Action $action) {
|
||||
$action->cssLink($this->path('theme/base/css/ostatus.css'));
|
||||
return true;
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@
|
||||
* @link http://status.net/
|
||||
*/
|
||||
|
||||
if (!defined('STATUSNET') && !defined('LACONICA')) {
|
||||
if (!defined('STATUSNET')) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ class RealtimePlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndShowStatusNetStyles($action)
|
||||
public function onEndShowStylesheets(Action $action)
|
||||
{
|
||||
$action->cssLink(Plugin::staticPath('Realtime', 'realtimeupdate.css'),
|
||||
null,
|
||||
|
@@ -32,7 +32,7 @@ class ShareNoticePlugin extends Plugin
|
||||
array('StatusNet', array('baseurl' => 'http://identi.ca'))
|
||||
);
|
||||
|
||||
function onEndShowStatusNetStyles($action) {
|
||||
public function onEndShowStylesheets(Action $action) {
|
||||
$action->cssLink($this->path('css/sharenotice.css'));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user