SF.net SVN: phpwiki:[10809] trunk/themes

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10809
          http://sourceforge.net/p/phpwiki/code/10809
Author:   vargenau
Date:     2022-01-03 15:14:27 +0000 (Mon, 03 Jan 2022)
Log Message:
-----------
Avoid null issue in PHP 8

Modified Paths:
--------------
    trunk/themes/Sidebar/templates/top.tmpl
    trunk/themes/wikilens/templates/body.tmpl

Modified: trunk/themes/Sidebar/templates/top.tmpl
===================================================================
--- trunk/themes/Sidebar/templates/top.tmpl	2022-01-03 10:58:16 UTC (rev 10808)
+++ trunk/themes/Sidebar/templates/top.tmpl	2022-01-03 15:14:27 UTC (rev 10809)
@@ -20,6 +20,7 @@
 <div id="rateit-widget-top">
 <?php
   $loader = new WikiPluginLoader();
+  $dbi = $request->getDbh(); // Needed in PHP 8
   printXML($loader->expandPI("<"."?plugin RateIt show=text ?".">", $request, $dbi->_markup));
 ?></div>
 <?php } ?>

Modified: trunk/themes/wikilens/templates/body.tmpl
===================================================================
--- trunk/themes/wikilens/templates/body.tmpl	2022-01-03 10:58:16 UTC (rev 10808)
+++ trunk/themes/wikilens/templates/body.tmpl	2022-01-03 15:14:27 UTC (rev 10809)
@@ -25,6 +25,7 @@
       <?php if (!empty($user) && $user->isSignedIn()) {
       $loader = new WikiPluginLoader();
       printXML(HTML::raw("&nbsp;&nbsp;"));
+      $dbi = $request->getDbh(); // Needed in PHP 8
       printXML($loader->expandPI("<"."?plugin RateIt ?".">", $request, $dbi->_markup));
     } ?> </h1>
     <div id="content">

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.