mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 21:59:12 +01:00
Update php8.1
This commit is contained in:
parent
0ab6cd285f
commit
e875dacbd4
2 changed files with 3 additions and 3 deletions
|
@ -328,7 +328,7 @@ class Compiler
|
|||
// all Sass features that aren’t also valid CSS will produce errors.
|
||||
// Otherwise, the CSS will be rendered as-is. It can even be extended!
|
||||
$cssOnly = false;
|
||||
|
||||
$path .= "";
|
||||
if (substr($path, '-4') === '.css') {
|
||||
$cssOnly = true;
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ namespace gp{
|
|||
$args = func_get_args();
|
||||
$args[] = $dataDir . $dirPrefix;
|
||||
foreach($args as $arg){
|
||||
if( !ctype_digit($arg) ){
|
||||
if( !ctype_digit((string)$arg)){
|
||||
$arg = crc32( $arg );
|
||||
$arg = sprintf("%u\n", $arg);
|
||||
}
|
||||
|
@ -700,7 +700,7 @@ namespace gp{
|
|||
public static function SpecialHref($href){
|
||||
global $gp_index;
|
||||
|
||||
$href2 = '';
|
||||
$href2 = ''; $href .= '';
|
||||
$pos = mb_strpos($href, '/');
|
||||
if( $pos !== false ){
|
||||
$href2 = mb_substr($href, $pos);
|
||||
|
|
Loading…
Reference in a new issue