X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmwdoc-filter.php;h=89fc44bd6ec0c64ba6726197f01cff083cabc33c;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hp=ed63c5c7f254c876767d1640fa2b90019e0d789e;hpb=abb7c6792fab5e9a6e0c088dd820fd3d74c13059;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdoc-filter.php b/maintenance/mwdoc-filter.php index ed63c5c7f2..89fc44bd6e 100644 --- a/maintenance/mwdoc-filter.php +++ b/maintenance/mwdoc-filter.php @@ -5,7 +5,7 @@ * Should be set in Doxygen INPUT_FILTER as "php mwdoc-filter.php" * * Based on - * + * * * Improved to resolve various bugs and better MediaWiki PHPDoc conventions: * @@ -16,7 +16,7 @@ * - Strip the text after @var from the output to avoid Doxygen warnings aboug bogus * symbols being documented but not declared or defined. * - * Copyright (C) 2012 Tamas Imrei http://virtualtee.blogspot.com/ + * Copyright (C) 2012 Tamas Imrei https://virtualtee.blogspot.com/ * Copyright (C) 2015 Timo Tijhof * * Permission is hereby granted, free of charge, to any person obtaining @@ -38,7 +38,8 @@ * DEALINGS IN THE SOFTWARE. */ -if ( PHP_SAPI != 'cli' ) { +// Warning: Converting this to a Maintenance script may reduce performance. +if ( PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg' ) { die( "This filter can only be run from the command line.\n" ); }