mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 13:01:08 -05:00
Added files via upload
Update geshi.php with php7 fix
This commit is contained in:
parent
9c72e8a93d
commit
ac32f95da1
@ -594,11 +594,11 @@ class GeSHi {
|
|||||||
* {@link GeSHi->set_language_path()}
|
* {@link GeSHi->set_language_path()}
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
function GeSHi($source = '', $language = '', $path = '') {
|
function __construct($source = '', $language = '', $path = '') {
|
||||||
if (!empty($source)) {
|
if ( is_string($source) && ($source !== '') ) {
|
||||||
$this->set_source($source);
|
$this->set_source($source);
|
||||||
}
|
}
|
||||||
if (!empty($language)) {
|
if ( is_string($language) && ($language !== '') ) {
|
||||||
$this->set_language($language);
|
$this->set_language($language);
|
||||||
}
|
}
|
||||||
$this->set_language_path($path);
|
$this->set_language_path($path);
|
||||||
@ -2151,7 +2151,7 @@ class GeSHi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->language_data['NUMBERS_RXCACHE'][$key] =
|
$this->language_data['NUMBERS_RXCACHE'][$key] =
|
||||||
"/(?<!<\|\/)(?<!<\|!REG3XP)(?<!<\|\/NUM!)(?<!\d\/>)($regexp)(?!(?:<DOT>|(?>[^\<]))+>)(?![^<]*>)(?!\|>)(?!\/>)/i"; //
|
"/(?<!<\|\/)(?<!<\|!REG3XP)(?<!<\|\/NUM!)(?<!\d\/>)($regexp)(?!(?:<DOT>|(?>[^\<]))+>)(?![^<]*>)(?!\|>)(?!\/>)/i";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'])) {
|
if(!isset($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user