mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-15 01:09:57 +09:00
merge from 1.5.3 (~r10943)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@10951 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7aa4798373
commit
54e3a72065
334 changed files with 13011 additions and 5561 deletions
|
|
@ -70,13 +70,15 @@
|
|||
function getDefaultMid() {
|
||||
$default_url = preg_replace('/\/$/','',Context::getDefaultUrl());
|
||||
$request_url = preg_replace('/\/$/','',Context::getRequestUri());
|
||||
$default_url_parse = parse_url($default_url);
|
||||
$request_url_parse = parse_url($request_url);
|
||||
$vid = Context::get('vid');
|
||||
$mid = Context::get('mid');
|
||||
|
||||
// Set up
|
||||
// test.xe.com
|
||||
$domain = '';
|
||||
if($default_url && $default_url != $request_url) {
|
||||
if($default_url && $default_url_parse['host'] != $request_url_parse['host']) {
|
||||
$url_info = parse_url($request_url);
|
||||
$hostname = $url_info['host'];
|
||||
$path = preg_replace('/\/$/','',$url_info['path']);
|
||||
|
|
@ -630,8 +632,10 @@
|
|||
$info->menu->{$action->attrs->menu_name}->index = $name;
|
||||
$buff .= sprintf('$info->menu->%s->index=\'%s\';', $action->attrs->menu_name, $name);
|
||||
}
|
||||
array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
if(is_array($info->menu->{$action->attrs->menu_name}->acts)) {
|
||||
@array_push($info->menu->{$action->attrs->menu_name}->acts, $name);
|
||||
$currentKey = @array_search($name, $info->menu->{$action->attrs->menu_name}->acts);
|
||||
}
|
||||
|
||||
$buff .= sprintf('$info->menu->%s->acts[%d]=\'%s\';', $action->attrs->menu_name, $currentKey, $name);
|
||||
$i++;
|
||||
|
|
@ -1015,9 +1019,10 @@
|
|||
/**
|
||||
* @brief Get a list of module category
|
||||
**/
|
||||
function getModuleCategories() {
|
||||
function getModuleCategories($moduleCategorySrl = array()) {
|
||||
$args->moduleCategorySrl = $moduleCategorySrl;
|
||||
// Get data from the DB
|
||||
$output = executeQuery('module.getModuleCategories');
|
||||
$output = executeQuery('module.getModuleCategories', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
$list = $output->data;
|
||||
if(!$list) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue