[ros-diffs] [dgoette] 37566: implement [#wiki_ABC] to wiki page 'ABC'

dgoette at svn.reactos.org dgoette at svn.reactos.org
Sat Nov 22 21:00:44 CET 2008


Author: dgoette
Date: Sat Nov 22 14:00:43 2008
New Revision: 37566

URL: http://svn.reactos.org/svn/reactos?rev=37566&view=rev
Log:
implement [#wiki_ABC] to wiki page 'ABC'

Modified:
    branches/danny-web/reactos.org/htdocs/roscms/custom.php
    branches/danny-web/reactos.org/htdocs/roscms/lib/Export_HTML.class.php

Modified: branches/danny-web/reactos.org/htdocs/roscms/custom.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/custom.php?rev=37566&r1=37565&r2=37566&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/custom.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/custom.php [iso-8859-1] Sat Nov 22 14:00:43 2008
@@ -32,5 +32,6 @@
 	$roscms_standard_language_full="English"; // English/German/...
 	$roscms_standard_language_trans="de"; // en/de/fr/...
   
+  $roscms_subsystem_wiki_path = '/reactos/wiki/index.php/'; // base adress for wiki pages
 
 ?>

Modified: branches/danny-web/reactos.org/htdocs/roscms/lib/Export_HTML.class.php
URL: http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/roscms/lib/Export_HTML.class.php?rev=37566&r1=37565&r2=37566&view=diff
==============================================================================
--- branches/danny-web/reactos.org/htdocs/roscms/lib/Export_HTML.class.php [iso-8859-1] (original)
+++ branches/danny-web/reactos.org/htdocs/roscms/lib/Export_HTML.class.php [iso-8859-1] Sat Nov 22 14:00:43 2008
@@ -335,6 +335,7 @@
     global $roscms_intern_webserver_pages;
     global $roscms_intern_webserver_roscms;
     global $roscms_standard_language;
+    global $roscms_subsystem_wiki_path;
 
     // try to force unlimited script runtime
     @set_time_limit(0);
@@ -405,7 +406,10 @@
     $content = str_replace('[#roscms_page_version]', $page['rev_version'], $content); 
 
     // page edit link
-    $content = str_replace('[#roscms_page_edit]', $roscms_intern_webserver_roscms.'?page=data_out&d_f=page&d_u=show&d_val='.$this->page_name.'&d_val2='.$this->lang.'&d_val3='.$this->dynamic_num.'&d_val4=edit', $content); 
+    $content = str_replace('[#roscms_page_edit]', $roscms_intern_webserver_roscms.'?page=data_out&d_f=page&d_u=show&d_val='.$this->page_name.'&d_val2='.$this->lang.'&d_val3='.$this->dynamic_num.'&d_val4=edit', $content);
+
+    // Subsystem Links
+    $content = preg_replace('/\[#wiki_([^]]+)\]/', $roscms_subsystem_wiki_path.'$1', $content);
 
     // translation info
     if ($this->lang == $roscms_standard_language) {



More information about the Ros-diffs mailing list