projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge fix
[platal.git]
/
modules
/
banana
/
banana.inc.php
diff --git
a/modules/banana/banana.inc.php
b/modules/banana/banana.inc.php
index
af6a063
..
0ee449a
100644
(file)
--- a/
modules/banana/banana.inc.php
+++ b/
modules/banana/banana.inc.php
@@
-59,7
+59,7
@@
function hook_browsingAction()
function hook_makeLink($params) {
global $globals;
$base = $globals->baseurl . '/banana';
function hook_makeLink($params) {
global $globals;
$base = $globals->baseurl . '/banana';
- if ($params['subscribe'] == 1) {
+ if (
@
$params['subscribe'] == 1) {
return $base . '/subscription';
}
if (isset($params['xface'])) {
return $base . '/subscription';
}
if (isset($params['xface'])) {
@@
-75,9
+75,9
@@
function hook_makeLink($params) {
return $base . '/from/' . $params['first'];
}
if (isset($params['artid'])) {
return $base . '/from/' . $params['first'];
}
if (isset($params['artid'])) {
- if ($params['action'] == 'new') {
+ if (
@
$params['action'] == 'new') {
$base .= '/reply';
$base .= '/reply';
- } elseif ($params['action'] == 'cancel') {
+ } elseif (
@
$params['action'] == 'cancel') {
$base .= '/cancel';
} else {
$base .= '/read';
$base .= '/cancel';
} else {
$base .= '/read';
@@
-85,7
+85,7
@@
function hook_makeLink($params) {
return $base . '/' . $params['artid'];
}
return $base . '/' . $params['artid'];
}
- if ($params['action'] == 'new') {
+ if (
@
$params['action'] == 'new') {
return $base . '/new';
}
return $base;
return $base . '/new';
}
return $base;
@@
-171,7
+171,7
@@
class PlatalBanana extends Banana
parent::Banana();
}
parent::Banana();
}
- function run($params = null)
+
static
function run($params = null)
{
global $banana;
{
global $banana;
@@
-184,7
+184,7
@@
class PlatalBanana extends Banana
$time, S::v('uid'));
$_SESSION['banana_last'] = $time;
}
$time, S::v('uid'));
$_SESSION['banana_last'] = $time;
}
- return Banana::run('PlatalBanana', $params);
+ return Banana::run
_banana
('PlatalBanana', $params);
}
function action_saveSubs()
}
function action_saveSubs()