Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
164138af
Commit
164138af
authored
Mar 05, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
4aab1572
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
5 deletions
+22
-5
Parse.php
vendor/Text/Wiki/Parse.php
+7
-2
Code.php
vendor/Text/Wiki/Parse/Default/Code.php
+1
-1
Code.php
vendor/Text/Wiki/Render/Xhtml/Code.php
+9
-1
errors.php
vendor/simpletest/errors.php
+5
-1
No files found.
vendor/Text/Wiki/Parse.php
View file @
164138af
...
...
@@ -233,6 +233,12 @@ class Text_Wiki_Parse {
{
// find the =" sections;
$tmp
=
explode
(
'="'
,
trim
(
$text
));
$mark
=
'"'
;
if
(
count
(
$tmp
)
==
1
)
{
$tmp
=
explode
(
"='"
,
trim
(
$text
));
$mark
=
"'"
;
}
// basic setup
$k
=
count
(
$tmp
)
-
1
;
...
...
@@ -251,12 +257,11 @@ class Text_Wiki_Parse {
// find the last double-quote in the value.
// the part to the left is the value for the last key,
// the part to the right is the next key name
$pos
=
strrpos
(
$val
,
'"'
);
$pos
=
strrpos
(
$val
,
$mark
);
$attrs
[
$key
]
=
stripslashes
(
substr
(
$val
,
0
,
$pos
));
$key
=
trim
(
substr
(
$val
,
$pos
+
1
));
}
return
$attrs
;
}
...
...
vendor/Text/Wiki/Parse/Default/Code.php
View file @
164138af
...
...
@@ -80,7 +80,7 @@ class Text_Wiki_Parse_Code extends Text_Wiki_Parse {
}
else
{
// get the attributes...
$attr
=
$this
->
getAttrs
(
$args
);
// ... and make sure we have a 'type'
if
(
!
isset
(
$attr
[
'type'
]))
{
$attr
[
'type'
]
=
''
;
...
...
vendor/Text/Wiki/Render/Xhtml/Code.php
View file @
164138af
...
...
@@ -58,7 +58,7 @@ class Text_Wiki_Render_Xhtml_Code extends Text_Wiki_Render {
$css_html
=
$this
->
formatConf
(
' class="%s"'
,
'css_html'
);
$css_filename
=
$this
->
formatConf
(
' class="%s"'
,
'css_filename'
);
if
(
$type
==
'php'
||
true
)
{
if
(
$type
==
'php'
)
{
if
(
substr
(
$options
[
'text'
],
0
,
5
)
!=
'<?php'
)
{
// PHP code example:
// add the PHP tags
...
...
@@ -120,6 +120,14 @@ class Text_Wiki_Render_Xhtml_Code extends Text_Wiki_Render {
$text
=
$this
->
textEncode
(
$text
);
$text
=
"<pre
$css
><code
$css_html
>
$text
</code></pre>"
;
}
elseif
(
$type
==
'sql'
)
{
// HTML code example:
// add <html> opening and closing tags,
// convert tabs to four spaces,
// convert entities.
$text
=
str_replace
(
"
\t
"
,
" "
,
$text
);
$text
=
$this
->
textEncode
(
$text
);
$text
=
"<div class='sql'>
$text
</div>"
;
}
else
{
// generic code example:
// convert tabs to four spaces,
...
...
vendor/simpletest/errors.php
View file @
164138af
...
...
@@ -109,7 +109,11 @@
E_COMPILE_WARNING
=>
'E_COMPILE_WARNING'
,
E_USER_ERROR
=>
'E_USER_ERROR'
,
E_USER_WARNING
=>
'E_USER_WARNING'
,
E_USER_NOTICE
=>
'E_USER_NOTICE'
);
E_USER_NOTICE
=>
'E_USER_NOTICE'
,
E_RECOVERABLE_ERROR
=>
'E_RECOVERABLE_ERROR'
);
if
(
!
isset
(
$map
[
$severity
]))
{
return
null
;
}
return
$map
[
$severity
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment