Browse Source

Починка для вики

master
Alexander Yakovlev 1 year ago
parent
commit
798bfc40b2
Signed by: oreolek GPG Key ID: 1CDC4B7820C93BD3
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      src/Wikipage.php
  2. +1
    -1
      wiki.php

+ 2
- 0
src/Wikipage.php View File

@@ -16,6 +16,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Oreolek;

use Mediawiki\Api\Service\FileUploader;
use Mediawiki\Api\MediawikiApi;
use Mediawiki\Api\ApiUser;


+ 1
- 1
wiki.php View File

@@ -35,7 +35,7 @@ function check($classname) {
global $game;
global $url;

$cname = 'Source\\'.$classname;
$cname = 'Oreolek\\Source\\'.$classname;
$cl = (new $cname());
if ($cl->checkPage($url)) {
echo 'Используется правило "'.$cl->title.'".'.PHP_EOL;