$UploadMaxSize = 500000;
$LinkWikiWords = 0; # disable WikiWord links
$EnableIMSCaching = 1; # allow browser caching
+$EnablePageListProtect = 0; # We use our own permission system.
$ScriptUrl = '.'; #\
$UploadUrlFmt = './uploads'; # } works thanks to the <base /> in skin
@include_once("$FarmD/cookbook/e-protect.php");
include_once($FarmD.'/scripts/xlpage-utf-8.php');
-ResolvePageName();
+$pagename = ResolvePageName($pagename);
if ($action == 'rss' || $action == 'atom' || $action == 'rdf' || $action == 'dc') {
$FmtPV['$MarkupExcerpt'] = '$page["text"]';
function doPlatalLink($link, $text)
{
if (strlen(trim($text)) == 0) {
- $user = User::get($link);
- $text = $user->fullName();
+ $profile = Profile::get($link);
+ if (!$profile) {
+ return '##Utilisateur inconnu##' . $text . '##';
+ }
+ $text = $profile->fullName();
}
return '<a href="profile/' . $link . '" class="popup2">' . $text . '</a>';
}