projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
[platal.git]
/
modules
/
profile.php
diff --git
a/modules/profile.php
b/modules/profile.php
index
c79a123
..
4396249
100644
(file)
--- a/
modules/profile.php
+++ b/
modules/profile.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
1
Polytechnique.org *
+ * Copyright (C) 2003-201
3
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 *
@@
-358,7
+358,7
@@
class ProfileModule extends PLModule
function handler_education_js($page)
{
function handler_education_js($page)
{
- pl_cached_
content_headers('text/javascript', 'utf-8', 3600
);
+ pl_cached_
dynamic_content_headers('text/javascript', 'utf-8'
);
$page->changeTpl('profile/education.js.tpl', NO_SKIN);
require_once 'education.func.inc.php';
}
$page->changeTpl('profile/education.js.tpl', NO_SKIN);
require_once 'education.func.inc.php';
}
@@
-516,6
+516,11
@@
class ProfileModule extends PLModule
return PL_NOT_FOUND;
}
return PL_NOT_FOUND;
}
+ // Referent view are logged.
+ if (S::logged()) {
+ S::logger()->log('view_referent', $pf->hrid());
+ }
+
$page->assign_by_ref('profile', $pf);
// Retrieves referents' countries.
$page->assign_by_ref('profile', $pf);
// Retrieves referents' countries.