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
e7413a69
Commit
e7413a69
authored
Dec 02, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style (app/admin.php)
parent
ec888472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
admin.php
qa-include/app/admin.php
+11
-10
No files found.
qa-include/app/admin.php
View file @
e7413a69
...
...
@@ -594,32 +594,33 @@
}
/**
* Return the hash code for the plugin in $directory (without trailing slash), used for in-page navigation on admin/plugins page
*/
function
qa_admin_plugin_directory_hash
(
$directory
)
/*
Return the hash code for the plugin in $directory, used for in-page navigation on admin/plugins page
*/
{
return
md5
(
$directory
);
}
/**
* Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory (without trailing slash)
*/
function
qa_admin_plugin_options_path
(
$directory
)
/*
Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory
*/
{
$hash
=
qa_admin_plugin_directory_hash
(
$directory
);
$hash
=
qa_admin_plugin_directory_hash
(
$directory
);
return
qa_path_html
(
'admin/plugins'
,
array
(
'show'
=>
$hash
),
null
,
null
,
$hash
);
}
/**
* Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type
*/
function
qa_admin_module_options_path
(
$type
,
$name
)
/*
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
);
$dir
=
rtrim
(
$info
[
'directory'
],
'/'
);
return
qa_admin_plugin_options_path
(
$dir
);
}
...
...
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