Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
outils
question2answer
Commits
ec888472
Commit
ec888472
authored
Dec 02, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Normalize directory paths for admin/plugins page
parent
1d92c67e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
admin.php
qa-include/app/admin.php
+3
-2
admin-plugins.php
qa-include/pages/admin/admin-plugins.php
+4
-3
No files found.
qa-include/app/admin.php
View file @
ec888472
...
...
@@ -618,8 +618,9 @@
Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type
*/
{
$info
=
qa_get_module_info
(
$type
,
$name
);
return
qa_admin_plugin_options_path
(
$info
[
'directory'
]);
$info
=
qa_get_module_info
(
$type
,
$name
);
$dir
=
rtrim
(
$info
[
'directory'
],
'/'
);
return
qa_admin_plugin_options_path
(
$dir
);
}
...
...
qa-include/pages/admin/admin-plugins.php
View file @
ec888472
...
...
@@ -49,7 +49,8 @@
if
(
method_exists
(
$module
,
'admin_form'
))
{
$info
=
qa_get_module_info
(
$type
,
$name
);
$pluginoptionmodules
[
$info
[
'directory'
]][]
=
array
(
$dir
=
rtrim
(
$info
[
'directory'
],
'/'
);
$pluginoptionmodules
[
$dir
][]
=
array
(
'type'
=>
$type
,
'name'
=>
$name
,
);
...
...
@@ -122,7 +123,7 @@
$pluginIndex
=
-
1
;
foreach
(
$sortedPluginFiles
as
$pluginFile
=>
$metadata
)
{
$pluginIndex
++
;
$plugindirectory
=
dirname
(
$pluginFile
)
.
'/'
;
$plugindirectory
=
dirname
(
$pluginFile
);
$hash
=
qa_admin_plugin_directory_hash
(
$plugindirectory
);
$showthisform
=
$showpluginforms
&&
(
qa_get
(
'show'
)
==
$hash
);
...
...
@@ -172,7 +173,7 @@
qa_admin_plugin_options_path
(
$plugindirectory
)
.
'">'
.
qa_lang_html
(
'admin/options'
)
.
'</a>'
;
$pluginhtml
=
$namehtml
.
' '
.
$authorhtml
.
' '
.
$updatehtml
.
'<br>'
.
$deschtml
.
(
strlen
(
$deschtml
)
?
'<br>'
:
''
)
.
'<small style="color:#666">'
.
qa_html
(
$plugindirectory
)
.
'</small>'
;
'<small style="color:#666">'
.
qa_html
(
$plugindirectory
)
.
'
/
</small>'
;
if
(
qa_qa_version_below
(
@
$metadata
[
'min_q2a'
]))
$pluginhtml
=
'<strike style="color:#999">'
.
$pluginhtml
.
'</strike><br><span style="color:#f00">'
.
...
...
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