projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typos (UFC -> PFC).
[platal.git]
/
classes
/
xnet.php
diff --git
a/classes/xnet.php
b/classes/xnet.php
index
f3da66f
..
9983aba
100644
(file)
--- a/
classes/xnet.php
+++ b/
classes/xnet.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
07
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-53,13
+53,20
@@
class Xnet extends Platal
$link = str_replace('%grp', $globals->asso('diminutif'), parent::near_hook());
if ($link != $this->path) {
return $link;
$link = str_replace('%grp', $globals->asso('diminutif'), parent::near_hook());
if ($link != $this->path) {
return $link;
- }
- return null;
+ }
+ return null;
+ }
+
+ public function pl_self($n = null)
+ {
+ global $globals;
+ return str_replace('%grp', $globals->asso('diminutif'), parent::pl_self($n));
}
protected function find_hook()
{
$ans = parent::find_hook();
}
protected function find_hook()
{
$ans = parent::find_hook();
+ $this->https = false;
if ($ans && $this->ns) {
$this->path = $this->ns . substr($this->path, 5);
$this->argv[0] = $this->ns . substr($this->argv[0], 5);
if ($ans && $this->ns) {
$this->path = $this->ns . substr($this->path, 5);
$this->argv[0] = $this->ns . substr($this->argv[0], 5);
@@
-67,7
+74,7
@@
class Xnet extends Platal
return $ans;
}
return $ans;
}
- public function force_login(&$page)
+ public function force_login(
PlPage
&$page)
{
http_redirect(S::v('loginX'));
}
{
http_redirect(S::v('loginX'));
}