Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-wiki
Project
Project
Details
Activity
Releases
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
project-open
intranet-wiki
Commits
35b6a94c
Commit
35b6a94c
authored
Feb 20, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Redirect to wiki if there is exactly one..
parent
7948b241
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
index.tcl
www/index.tcl
+16
-0
No files found.
www/index.tcl
View file @
35b6a94c
...
...
@@ -20,6 +20,22 @@ set return_url "[ad_conn url]?[ad_conn query]"
set
parent_var :folder_id
set
page_title
"Active Wikis"
# Redirect to wiki if there is exactly one..
set
folder_ids
[
db_list folder_ids
"
select f.folder_id
from apm_packages p, cr_folders f
where p.package_id = f.package_id
and p.package_key = 'wiki'
"
]
if
{[
llength
$folder
_ids
]
== 1
}
{
set folder_id
[
lindex
$folder
_ids 0
]
ad_returnredirect
[
export_vars -base
"/wiki/admin/index?"
{
folder_id
}]
ad_script_abort
}
set
wiki_component
[
im_wiki_home_component
]
# Get the list of currently existing Wiki installations
...
...
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