[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] PluginDiv: Fix E_WARNING for undefined style variable (regression from 15c8fdb1)
"luci \(@luciash\) via TikiWiki-cvs" <[email protected]> Tue, 28 Jul 2026 18:07:40 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a68efec21f6d_3819d908-192@gitlab-sidekiq-low-urgency-cpu-bound-v2-fb7c95f69-gv8qs.mail> |
--===============7047980665565910217==
Content-Type: multipart/alternative;
boundary="--==_mimepart_6a68efebf19b5_3819d908-2b";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_6a68efebf19b5_3819d908-2b
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
luci pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
fa67b598 by Aksanti Bahiga at 2026-07-28T17:59:25+00:00
[FIX] PluginDiv: Fix E_WARNING for undefined style variable (regression from 15c8fdb1)
---
* [FIX] PluginDiv: Fix E_WARNING for undefined style variable (regression from 15c8fdb1)
See merge request tikiwiki/tiki!10770
- - - - -
1 changed file:
- lib/wiki-plugins/wikiplugin_div.php
Changes:
=====================================
lib/wiki-plugins/wikiplugin_div.php
=====================================
@@ -203,6 +203,7 @@ function wikiplugin_div_info()
function wikiplugin_div($content, $params)
{
extract($params, EXTR_SKIP);
+ $style = $style ?? '';
$possibletypes = ['div','span','section','aside','header','footer','pre','strong','em','tt','p','blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
$t = (isset($type) and in_array($type, $possibletypes)) ? "$type" : "div";
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fa67b5980dce0c46727dc403470fededf44e7a27
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/fa67b5980dce0c46727dc403470fededf44e7a27
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
----==_mimepart_6a68efebf19b5_3819d908-2b
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www=
.w3.org/TR/REC-html40/loose.dtd">
<html lang=3D"en" style=3D'--code-editor-font: var(--default-mono-font, "=
GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, =
Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospac=
e;'>
<head>
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type">=
<title>
GitLab
</title>
<style data-premailer=3D"ignore" type=3D"text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Ro=
boto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Colo=
r Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size=
: inherit;
}
</style>
</head>
<body style=3D'font-size: inherit; -webkit-text-shadow: hsla(0,0%,100%,.0=
1) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"=
Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif=
,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji=
";'>
<div class=3D"content">
<h3 style=3D"margin-top: 20px; margin-bottom: 10px;">
luci pushed to branch 29.x at <a href=3D"https://gitlab.com/tikiwiki/tiki=
">Tiki Wiki CMS Groupware / Tiki</a>
</h3>
<h4 style=3D"margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style=3D"font-weight: 600;"><a href=3D"https://gitlab.com/tikiwik=
i/tiki/-/commit/fa67b5980dce0c46727dc403470fededf44e7a27">fa67b598</a></s=
trong>
<div>
<span> by Aksanti Bahiga </span> <i> at 2026-07-28T17:59:25+00:00 </i>
</div>
<pre class=3D"commit-message" style=3D'white-space: pre-wrap; display: bl=
ock; font-size: 14px; color: #3a383f; position: relative; font-family: "G=
itLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation M=
ono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida co=
nsole", monospace; font-variant-ligatures: none; word-break: break-all; w=
ord-wrap: break-word; background-color: #fbfafd; border-radius: 2px; marg=
in: 0; padding: 8px 12px; border: 1px solid #dcdcde;'>[FIX] PluginDiv: Fi=
x E_WARNING for undefined style variable (regression from 15c8fdb1)
---
* [FIX] PluginDiv: Fix E_WARNING for undefined style variable (regression=
from 15c8fdb1)
See merge request tikiwiki/tiki!10770
</pre>
</li>
</ul>
<h4 style=3D"margin-top: 10px; margin-bottom: 10px;">
1 changed file:
</h4>
<ul>
<li class=3D"file-stats">
<a href=3D"#2cf047b491149b99d785070e262924a9c1a73c81">
lib/wiki-plugins/wikiplugin_div.php
</a>
</li>
</ul>
<h4 style=3D"margin-top: 10px; margin-bottom: 10px;">
Changes:
</h4>
<li id=3D"2cf047b491149b99d785070e262924a9c1a73c81">
<a href=3D"https://gitlab.com/tikiwiki/tiki/-/commit/fa67b5980dce0c46727d=
c403470fededf44e7a27#2cf047b491149b99d785070e262924a9c1a73c81"><strong st=
yle=3D"font-weight: 600;">lib/wiki-plugins/wikiplugin_div.php</strong></a=
>
<hr style=3D"overflow: hidden; border: 1px solid #dcdcde;">
<table class=3D"code white" style=3D"border-spacing: 0; border-collapse: =
collapse; width: auto; font-family: monospace; font-size: 90%;" bgcolor=3D=
"#ffffff" width=3D"100%" cellpadding=3D"0" cellspacing=3D"0">
<tr class=3D"line_holder match" style=3D"line-height: 1.6;">
<td class=3D"diff-line-num unfold js-unfold old_line" data-linenumber=3D"=
203" style=3D"width: 35px; color: rgba(5,5,6,.24); border-right-width: 1p=
x; border-right-color: #ececef; border-right-style: solid; padding: inher=
it;" align=3D"right" bgcolor=3D"#fbfafd">...</td>
<td class=3D"diff-line-num unfold js-unfold new_line" data-linenumber=3D"=
203" style=3D"width: 35px; color: rgba(5,5,6,.24); border-right-width: 1p=
x; border-right-color: #ececef; border-right-style: solid; padding: inher=
it;" align=3D"right" bgcolor=3D"#fbfafd">...</td>
<td class=3D"line_content match" style=3D"color: rgba(5,5,6,.24); padding=
: inherit;" bgcolor=3D"#fbfafd">@@ -203,6 +203,7 @@ function wikiplugin_d=
iv_info()</td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"203" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
203
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"203" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
203
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"><span class=3D"k" style=3D"font-weight: 600;">fu=
nction</span> <span class=3D"n" style=3D"color: #333333;">wikiplugin_div<=
/span><span class=3D"p">(</span><span class=3D"nv" style=3D"color: #00808=
0;">$content</span><span class=3D"p">,</span> <span class=3D"nv" style=3D=
"color: #008080;">$params</span><span class=3D"p">)</span></span>
</pre></td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"204" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
204
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"204" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
204
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"><span class=3D"p">{</span></span>
</pre></td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"205" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
205
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"205" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
205
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"> <span class=3D"nb" style=3D"color: #0086b3;"=
>extract</span><span class=3D"p">(</span><span class=3D"nv" style=3D"colo=
r: #008080;">$params</span><span class=3D"p">,</span> <span class=3D"no" =
style=3D"color: #008080;">EXTR_SKIP</span><span class=3D"p">);</span></sp=
an>
</pre></td>
</tr>
<tr class=3D"line_holder new" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num new" data-linenumber=3D"206" style=3D=
"width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-rig=
ht-color: #c7f0d2; border-right-style: solid; padding: inherit;" align=3D=
"right" bgcolor=3D"#ddfbe6">
=
</td>
<td class=3D"new_line diff-line-num new" data-linenumber=3D"206" style=3D=
"width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-rig=
ht-color: #c7f0d2; border-right-style: solid; padding: inherit;" align=3D=
"right" bgcolor=3D"#ddfbe6">
206
</td>
<td class=3D"line_content new" style=3D"padding: inherit;" bgcolor=3D"#ec=
fdf0"><pre style=3D'display: block; font-size: 14px; color: #3a383f; posi=
tion: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "D=
ejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier =
New", "andale mono", "lucida console", monospace; font-variant-ligatures:=
none; word-break: break-all; word-wrap: break-word; background-color: in=
herit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #=
dcdcde;'>+<span class=3D"line" data-lang=3D"php"> <span class=3D"nv" s=
tyle=3D"color: #008080;">$style</span> <span class=3D"o" style=3D"font-we=
ight: 600;">=3D</span> <span class=3D"nv" style=3D"color: #008080;">$styl=
e</span> <span class=3D"o" style=3D"font-weight: 600;">??</span> <span cl=
ass=3D"s1" style=3D"color: #dd1144;">''</span><span class=3D"p">;</span><=
/span>
</pre></td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"206" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
206
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"207" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
207
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"></span>
</pre></td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"207" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
207
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"208" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
208
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"> <span class=3D"nv" style=3D"color: #008080;"=
>$possibletypes</span> <span class=3D"o" style=3D"font-weight: 600;">=3D<=
/span> <span class=3D"p">[</span><span class=3D"s1" style=3D"color: #dd11=
44;">'div'</span><span class=3D"p">,</span><span class=3D"s1" style=3D"co=
lor: #dd1144;">'span'</span><span class=3D"p">,</span><span class=3D"s1" =
style=3D"color: #dd1144;">'section'</span><span class=3D"p">,</span><span=
class=3D"s1" style=3D"color: #dd1144;">'aside'</span><span class=3D"p">,=
</span><span class=3D"s1" style=3D"color: #dd1144;">'header'</span><span =
class=3D"p">,</span><span class=3D"s1" style=3D"color: #dd1144;">'footer'=
</span><span class=3D"p">,</span><span class=3D"s1" style=3D"color: #dd11=
44;">'pre'</span><span class=3D"p">,</span><span class=3D"s1" style=3D"co=
lor: #dd1144;">'strong'</span><span class=3D"p">,</span><span class=3D"s1=
" style=3D"color: #dd1144;">'em'</span><span class=3D"p">,</span><span cl=
ass=3D"s1" style=3D"color: #dd1144;">'tt'</span><span class=3D"p">,</span=
><span class=3D"s1" style=3D"color: #dd1144;">'p'</span><span class=3D"p"=
>,</span><span class=3D"s1" style=3D"color: #dd1144;">'blockquote'</span>=
<span class=3D"p">,</span> <span class=3D"s1" style=3D"color: #dd1144;">'=
h1'</span><span class=3D"p">,</span> <span class=3D"s1" style=3D"color: #=
dd1144;">'h2'</span><span class=3D"p">,</span> <span class=3D"s1" style=3D=
"color: #dd1144;">'h3'</span><span class=3D"p">,</span> <span class=3D"s1=
" style=3D"color: #dd1144;">'h4'</span><span class=3D"p">,</span> <span c=
lass=3D"s1" style=3D"color: #dd1144;">'h5'</span><span class=3D"p">,</spa=
n> <span class=3D"s1" style=3D"color: #dd1144;">'h6'</span><span class=3D=
"p">];</span></span>
</pre></td>
</tr>
<tr class=3D"line_holder" style=3D"line-height: 1.6;">
<td class=3D"old_line diff-line-num" data-linenumber=3D"208" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
208
</td>
<td class=3D"new_line diff-line-num" data-linenumber=3D"209" style=3D"wid=
th: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-c=
olor: #ececef; border-right-style: solid; padding: inherit;" align=3D"rig=
ht" bgcolor=3D"#fbfafd">
209
</td>
<td class=3D"line_content" style=3D"padding: inherit;"><pre style=3D'disp=
lay: block; font-size: 14px; color: #3a383f; position: relative; font-fam=
ily: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liber=
ation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lu=
cida console", monospace; font-variant-ligatures: none; word-break: break=
-all; word-wrap: break-word; background-color: inherit; border-radius: 2p=
x; margin: 0; padding: 0; border: inherit solid #dcdcde;'> <span class=3D=
"line" data-lang=3D"php"> <span class=3D"nv" style=3D"color: #008080;"=
>$t</span> <span class=3D"o" style=3D"font-weight: 600;">=3D</span> <s=
pan class=3D"p">(</span><span class=3D"k" style=3D"font-weight: 600;">iss=
et</span><span class=3D"p">(</span><span class=3D"nv" style=3D"color: #00=
8080;">$type</span><span class=3D"p">)</span> <span class=3D"k" style=3D"=
font-weight: 600;">and</span> <span class=3D"nb" style=3D"color: #0086b3;=
">in_array</span><span class=3D"p">(</span><span class=3D"nv" style=3D"co=
lor: #008080;">$type</span><span class=3D"p">,</span> <span class=3D"nv" =
style=3D"color: #008080;">$possibletypes</span><span class=3D"p">))</span=
> <span class=3D"o" style=3D"font-weight: 600;">?</span> <span class=3D"s=
2" style=3D"color: #dd1144;">"</span><span class=3D"nv" style=3D"color: #=
008080;">$type</span><span class=3D"s2" style=3D"color: #dd1144;">"</span=
> <span class=3D"o" style=3D"font-weight: 600;">:</span> <span class=3D"s=
2" style=3D"color: #dd1144;">"div"</span><span class=3D"p">;</span></span=
>
</pre></td>
</tr>
</table>
<br>
</li>
</div>
<div class=3D"footer" style=3D"margin-top: 10px;">
<p style=3D"font-size: small; color: #626168;">
=E2=80=94
<br>
<a href=3D"https://gitlab.com/tikiwiki/tiki/-/commit/fa67b5980dce0c46727d=
c403470fededf44e7a27">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target=3D"_blan=
k" rel=3D"noopener noreferrer" href=3D"https://gitlab.com">gitlab.com</a>=
. <a href=3D"https://gitlab.com/-/profile/notifications" target=3D"_blank=
" rel=3D"noopener noreferrer" class=3D"mng-notif-link">Manage all notific=
ations</a> =C2=B7 <a href=3D"https://gitlab.com/help" target=3D"_blank" r=
el=3D"noopener noreferrer" class=3D"help-link">Help</a>
<span style=3D"color: transparent; font-size: 0; display: none; overflow:=
hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.com/tikiwiki/tiki/-/commit/=
fa67b5980dce0c46727dc403470fededf44e7a27 at 1785262059
</span>
<script type=3D"application/ld+json">{"@context":"http://schema.org","@ty=
pe":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","u=
rl":"https://gitlab.com/tikiwiki/tiki/-/commit/fa67b5980dce0c46727dc40347=
0fededf44e7a27"}}</script>
</p>
</div>
</body>
</html>
----==_mimepart_6a68efebf19b5_3819d908-2b--
--===============7047980665565910217==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============7047980665565910217==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
--===============7047980665565910217==--