Comments (2)
That should work. Using [ self::class, 'doRemoveAnnotation' ]
should also work and should be more refactoring-friendly.
from semanticmediawiki.
From what I understand, the fix is to remove self from the callback function here:
/**
* @since 2.5
*
* @param string $text
*
* @return text
*/
public static function removeAnnotation( $text ) {
if ( strpos( $text, '::' ) === false && strpos( $text, ':=' ) === false ) {
return $text;
}
return preg_replace_callback(
LinksProcessor::getRegexpPattern( false ),
'LinksEncoder::doRemoveAnnotation', // instead of 'self::doRemoveAnnotation',
self::decodeSquareBracket( $text )
);
}
from semanticmediawiki.
Related Issues (20)
- PHP Deprecated: Return type of SMW\Iterators\ChunkedIterator::XXX() should either be compatible with IteratorIterator::XXX HOT 1
- Invalid language code "{{uselang}}" HOT 2
- Unable to serialize JSON: Non-unserializable property set at $ (ParserCache) HOT 1
- Issue with Semantic MediaWiki when used in conjunction with Lockdown HOT 2
- Token input type print multiple values as a single value in form HOT 1
- [maintenance] Wikimedia\Rdbms\Platform\SQLPlatform::isWriteQuery fallback to regex HOT 1
- After upgrade from MW 1.39.4 to 1.39.5 new deprecation messages (SRF) and (PF) run query no longer providing drop down list HOT 4
- UnexpectedValueException when checking smw_hash field consistency HOT 3
- [MW 1.41] Parser::$mOutput must not be accessed before initialization HOT 7
- Int display width is deprecated in MYSQL 8
- SMW Matainenance Mode Does Not Progress HOT 1
- SemantikMediawiki 4.1.2 error during installation HOT 4
- Question about issues with subobjects when template expansion is left to a parser function
- Semantic Data Sorting Issue with MediaWiki 1.38+ and DisplayTitle Extension
- rebuilding data should not fail when geojson is involved HOT 1
- `import-annotation=no` not working for subobjects HOT 1
- SMW requires collation update every time HOT 2
- Is it possible to use the pipe template in an ask query?
- Fatal error after upgrading to SMW 4.1.3 (ElasticSearch) HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semanticmediawiki.