SF.net SVN: phpwiki:[10695] trunk/lib/plugin/RandomPage.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10695
          http://sourceforge.net/p/phpwiki/code/10695
Author:   vargenau
Date:     2021-11-25 18:12:12 +0000 (Thu, 25 Nov 2021)
Log Message:
-----------
RandomPage plugin: function default_exclude is private, pages are translated with "__"

Modified Paths:
--------------
    trunk/lib/plugin/RandomPage.php

Modified: trunk/lib/plugin/RandomPage.php
===================================================================
--- trunk/lib/plugin/RandomPage.php	2021-11-25 18:04:54 UTC (rev 10694)
+++ trunk/lib/plugin/RandomPage.php	2021-11-25 18:12:12 UTC (rev 10695)
@@ -125,12 +125,12 @@
         return $pagelist;
     }
 
-    function default_exclude()
+    private function default_exclude()
     {
         // Some useful default pages to exclude.
         $default_exclude = 'RandomPage,HomePage';
         foreach (explode(",", $default_exclude) as $e) {
-            $exclude[] = gettext($e);
+            $exclude[] = __($e);
         }
         return implode(",", $exclude);
     }

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.