Changes

From SME Server
Jump to navigationJump to search
1,132 bytes added ,  01:40, 2 December 2010
→‎Patches: bug 6420
Line 61: Line 61:     
=== Patches ===
 
=== Patches ===
 +
====htpps====
 
http://sourceforge.net/tracker/?group_id=134378&atid=729862
 
http://sourceforge.net/tracker/?group_id=134378&atid=729862
   Line 71: Line 72:  
  +    $root = $protocol . $_SERVER['HTTP_HOST'] . $root;
 
  +    $root = $protocol . $_SERVER['HTTP_HOST'] . $root;
    +
====404 error====
 +
In some cases the following occurs, this change is not usually needed
 +
 +
Use 'search all bookmarks' to return at least 3 pages of results.
 +
 +
Then click the 'Next' button. http://servername/scuttle/search.php/all//?page=2
 +
 +
if you click it again on page 2 and get a 404 error apply the following change
 +
 +
Fix this by editing /opt/scuttle/templates/bookmarks.tpl.php
 +
At line 151, ABOVE this line: (edited to remove html code)
 +
 +
echo class="paging $bfirst .span /span. $bprev .span /
 +
span. $bnext .span/ span>'. $blast .span> / span.
 +
sprintf(T_('Page %d of %d'), $page, $totalpages) .'/p';
 +
 +
Add this:
 +
 +
// page url bug on smeserver-scuttle contrib quick fix by MB 2010-12-01
 +
// remove double slashes
 +
$bfirst = str_replace ('//', '/', $bfirst);
 +
$bprev = str_replace ('//', '/', $bprev);
 +
$bnext = str_replace ('//', '/', $bnext);
 +
$blast = str_replace ('//', '/', $blast);
 +
// restore protocol slashes
 +
$bfirst = str_replace (':/', '://', $bfirst);
 +
$bprev = str_replace (':/', '://', $bprev);
 +
$bnext = str_replace (':/', '://', $bnext);
 +
$blast = str_replace (':/', '://', $blast);
 +
// end of fix
 
   
 
   
 
[[Category: Contrib]]
 
[[Category: Contrib]]

Navigation menu