Commit 1508d291 authored by changi67's avatar changi67

checkstyle - see http://quality.tiki.org

parent 7fdacfa3
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -87,21 +87,21 @@ if ( $stat_flag ) {
if ( isset($opcode_stats['hit_total']) ) {
$opcode_stats = array_merge(
$opcode_stats,
array(
'warning_fresh' => $opcode_stats['hit_total'] < 10000,
'warning_ratio' => $opcode_stats['hit_hit'] < 0.8,
)
$opcode_stats,
array(
'warning_fresh' => $opcode_stats['hit_total'] < 10000,
'warning_ratio' => $opcode_stats['hit_hit'] < 0.8,
)
);
}
if ( isset($opcode_stats['memory_total']) ) {
$opcode_stats = array_merge(
$opcode_stats,
array(
'warning_starve' => $opcode_stats['memory_avail'] < 0.2,
'warning_low' => $opcode_stats['memory_total'] < 60*1024*1024,
)
$opcode_stats,
array(
'warning_starve' => $opcode_stats['memory_avail'] < 0.2,
'warning_low' => $opcode_stats['memory_total'] < 60*1024*1024,
)
);
}
......
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -18,11 +18,11 @@
//this script may only be included - so its better to err & die if called directly.
//smarty is not there - we need setup
require_once('tiki-setup.php');
require_once('tiki-setup.php');
global $access, $tikilib, $headerlib;
$access->check_script($_SERVER["SCRIPT_NAME"], basename(__FILE__));
/*
/*
* Determine the settings used to display the thread
*/
......@@ -68,8 +68,8 @@ if (isset($_REQUEST['comzone'])) {
$comzone_state = $_REQUEST['comzone'];
if ($comzone_state=='show'||$comzone_state=='o') {
$comments_show = 'y';
if (!isset($_COOKIE['comzone'])||$_COOKIE['comzone']=='c') setcookie('comzone', 'o');
}
if (!isset($_COOKIE['comzone'])||$_COOKIE['comzone']=='c') setcookie('comzone', 'o');
}
if ($comzone_state=='hide'||$comzone_state=='c') {
if (!isset($_COOKIE['comzone'])||$_COOKIE['comzone']=='o') setcookie('comzone', 'c');
}
......@@ -81,7 +81,7 @@ $comments_first = 1;
foreach ($comments_vars as $c_name) {
$comments_avar["name"] = $c_name;
if (isset($_REQUEST[$c_name])) {
$comments_avar["value"] = $_REQUEST[$c_name];
$comments_aux[] = $comments_avar;
......@@ -162,16 +162,16 @@ if ( isset($_REQUEST['comments_objectId']) && $_REQUEST['comments_objectId'] ==
$threadId = $commentslib->post_in_forum($forum_info, $_REQUEST, $feedbacks, $errors);
if (!empty($threadId) && empty($errors)) {
$url = "tiki-view_forum_thread.php?forumId=" . $_REQUEST['forumId'] . "&comments_parentId=" . $_REQUEST['comments_parentId'];
if (!empty($_REQUEST['comments_threshold']))
if (!empty($_REQUEST['comments_threshold']))
$url .= "&amp;comments_threshold=".$_REQUEST['comments_threshold'];
if (!empty($_REQUEST['comments_offset']))
if (!empty($_REQUEST['comments_offset']))
$url .= "&amp;comments_offset=".$_REQUEST['comments_offset'];
if (!empty($_REQUEST['comments_per_page']))
if (!empty($_REQUEST['comments_per_page']))
$url .= "&amp;comments_per_page=".$_REQUEST['comments_per_page'];
if (!empty($_REQUEST['thread_style']))
if (!empty($_REQUEST['thread_style']))
$url .= "&amp;thread_style=".$_REQUEST['thread_style'];
if (!empty($_REQUEST['thread_sort_mode']))
$url .= "&amp;thread_sort_mode=".$_REQUEST['thread_sort_mode'];
if (!empty($_REQUEST['thread_sort_mode']))
$url .= "&amp;thread_sort_mode=".$_REQUEST['thread_sort_mode'];
if (!empty($feedbacks)) {
$_SESSION['feedbacks'] = $feedbacks;
}
......@@ -213,7 +213,7 @@ if ($_REQUEST["comments_threadId"] > 0) {
$comment_info = $commentslib->get_comment($_REQUEST["comments_threadId"]);
$smarty->assign('comment_title', $comment_info["title"]);
$smarty->assign('comment_rating', $comment_info["comment_rating"]);
$smarty->assign('comment_rating', $comment_info["comment_rating"]);
$smarty->assign('comment_data', $comment_info["data"]);
} elseif ($_REQUEST["comments_reply_threadId"] > 0) {
// Replies to comments.
......@@ -257,7 +257,7 @@ if ($_REQUEST["comments_threadId"] > 0) {
$smarty->assign('comments_reply_threadId', $_REQUEST["comments_reply_threadId"]);
} else {
$smarty->assign('comment_title', '');
$smarty->assign('comment_rating', '');
$smarty->assign('comment_rating', '');
$smarty->assign('comment_data', '');
}
......@@ -338,10 +338,10 @@ if (empty($thread_sort_mode)) {
}
$comments_coms = $commentslib->get_comments(
$comments_objectId,
$_REQUEST["comments_parentId"],
$comments_offset, $comments_per_page, $thread_sort_mode, $_REQUEST["comments_commentFind"],
$_REQUEST['comments_threshold'], $thread_style, $threadId_if_reply
$comments_objectId,
$_REQUEST["comments_parentId"],
$comments_offset, $comments_per_page, $thread_sort_mode, $_REQUEST["comments_commentFind"],
$_REQUEST['comments_threshold'], $thread_style, $threadId_if_reply
);
if ($comments_prefix_var == 'forum:') {
......
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -16,7 +16,7 @@ class AdminLib extends TikiLib
function list_dsn($offset, $maxRecords, $sort_mode, $find)
{
$bindvars=array();
if ($find) {
$findesc = '%' . $find . '%';
......@@ -182,7 +182,7 @@ class AdminLib extends TikiLib
$pictures[] = $matches[2];
if (preg_match("/(src|file)=([^&\"\s,]+)/xis", $pic, $matches))
$pictures[] = $matches[2];
}
}
$pictures = array_unique($pictures);
......@@ -335,19 +335,20 @@ class AdminLib extends TikiLib
$query = "insert into `tiki_tags`(`tagName`,`pageName`,`hits`,`data`,`lastModif`,`comment`,`version`,`user`,`ip`,`flag`,`description`)" .
" values(?,?,?,?,?,?,?,?,?,?,?)";
$result2 = $this->query(
$query,
array(
$tagname,
$pageName,
$res["hits"],
$data,
$res["lastModif"],
$res["comment"],
$res["version"],
$res["user"],
$res["ip"],
$res["flag"],
$description)
$query,
array(
$tagname,
$pageName,
$res["hits"],
$data,
$res["lastModif"],
$res["comment"],
$res["version"],
$res["user"],
$res["ip"],
$res["flag"],
$description
)
);
}
......@@ -370,22 +371,22 @@ class AdminLib extends TikiLib
while ($res = $result->fetchRow()) {
$query = "update `tiki_pages`" .
" set `hits`=?,`data`=?,`lastModif`=?,`comment`=?,`version`=`version`+1,`user`=?,`ip`=?,`flag`=?,`description`=?" .
" set `hits`=?,`data`=?,`lastModif`=?,`comment`=?,`version`=`version`+1,`user`=?,`ip`=?,`flag`=?,`description`=?" .
" where `pageName`=?";
$result2 = $this->query(
$query,
array(
$res["hits"],
$res["data"],
$res["lastModif"],
$res["comment"],
$res["user"],
$res["ip"],
$res["flag"],
$res["description"],
$res["pageName"]
)
$query,
array(
$res["hits"],
$res["data"],
$res["lastModif"],
$res["comment"],
$res["user"],
$res["ip"],
$res["flag"],
$res["description"],
$res["pageName"]
)
);
}
......@@ -396,11 +397,11 @@ class AdminLib extends TikiLib
// Dumps the database to dump/new.tar
// changed for virtualhost support
function dump()
function dump()
{
global $tikidomain, $prefs;
$parserlib = TikiLib::lib('parser');
$dump_path = "dump";
if ($tikidomain) {
$dump_path.= "/$tikidomain";
......@@ -423,16 +424,16 @@ class AdminLib extends TikiLib
$dat = preg_replace("/tiki-editpage.php\?page=([^\'\"\$]+)/", "", $dat);
//preg_match_all("/tiki-index.php\?page=([^ ]+)/",$dat,$cosas);
//print_r($cosas);
$data = "<html><head><title>" .
$res["pageName"] .
"</title><link rel='StyleSheet' href='styles/" .
$prefs['style'] .
"' type='text/css'></head><body><a class='wiki' href='" .
$prefs['wikiHomePage'] .
".html'>home</a><br /><h1>" .
$res["pageName"] .
"</h1><div class='wikitext'>" .
$dat .
$data = "<html><head><title>" .
$res["pageName"] .
"</title><link rel='StyleSheet' href='styles/" .
$prefs['style'] .
"' type='text/css'></head><body><a class='wiki' href='" .
$prefs['wikiHomePage'] .
".html'>home</a><br /><h1>" .
$res["pageName"] .
"</h1><div class='wikitext'>" .
$dat .
'</div></body></html>';
$tar->addData($pageName, $data, $res["lastModif"]);
}
......
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -23,19 +23,19 @@ function codemirrorModes($minify = true)
$js .= @file_get_contents("lib/codemirror_tiki/mode/tiki/tiki.js");
$css .= @file_get_contents("lib/codemirror_tiki/mode/tiki/tiki.css");
foreach(glob('lib/codemirror/mode/*', GLOB_ONLYDIR) as $dir) {
foreach(glob($dir.'/*.js') as $jsFile) {
foreach (glob('lib/codemirror/mode/*', GLOB_ONLYDIR) as $dir) {
foreach (glob($dir.'/*.js') as $jsFile) {
$js .= "//" . $jsFile . "\n";
$js .= "try{" . @file_get_contents($jsFile) . "}catch(e){}";
}
foreach(glob($dir.'/*.css') as $cssFile) {
foreach (glob($dir.'/*.css') as $cssFile) {
$css .= "/*" . $cssFile . "*/\n";
$css .= @file_get_contents($cssFile);
}
}
//load themes
foreach(glob('lib/codemirror/theme/*.css') as $cssFile) {
foreach (glob('lib/codemirror/theme/*.css') as $cssFile) {
$css .= @file_get_contents($cssFile);
}
......@@ -49,4 +49,4 @@ function codemirrorModes($minify = true)
TikiLib::lib("header")
->add_jsfile_dependancy($jsModes)
->add_cssfile($cssModes);
}
\ No newline at end of file
}
......@@ -181,7 +181,7 @@ class Connect_Server extends Connect_Abstract
/**
* Gets a summary of connections
*
*
* @return array
*/
......@@ -192,17 +192,17 @@ class Connect_Server extends Connect_Abstract
$ret = array();
$ret['received'] = $this->connectTable->fetchCount(
array(
'type' => 'received',
'server' => 1,
)
array(
'type' => 'received',
'server' => 1,
)
);
// select distinct guid from tiki_connect where server=1;
$res = TikiLib::lib('tiki')->getOne('SELECT COUNT(DISTINCT `guid`) FROM `tiki_connect` WHERE `server` = 1 AND `type` = \'received\';');
$ret['guids'] = $res;
return $ret;
}
......@@ -226,12 +226,12 @@ class Connect_Server extends Connect_Abstract
function isPendingGuid( $guid )
{
$res = $this->connectTable->fetchOne(
'data',
array(
'type' => 'pending',
'server' => 1,
'guid' => $guid,
)
'data',
array(
'type' => 'pending',
'server' => 1,
'guid' => $guid,
)
);
return $res;
}
......@@ -247,11 +247,11 @@ class Connect_Server extends Connect_Abstract
function isConfirmedGuid( $guid )
{
$res = $this->connectTable->fetchCount(
array(
'type' => 'confirmed',
'server' => 1,
'guid' => $guid,
)
array(
'type' => 'confirmed',
'server' => 1,
'guid' => $guid,
)
);
return $res > 0;
}
......
......@@ -50,11 +50,13 @@ Class Feed_ForwardLink_Send extends Feed_Abstract
//Here we add the date last updated so that we don't have to send it if not needed, saving load time.
if (!empty($resultJson->feed) && $resultJson->feed == "success") {
$me->addItem(array(
'dateLastUpdated'=> $item->textlink->dateLastUpdated,
'textlinkHash'=> $item->textlink->hash,
'forwardlinkHash'=> $item->forwardlink->hash
));
$me->addItem(
array(
'dateLastUpdated'=> $item->textlink->dateLastUpdated,
'textlinkHash'=> $item->textlink->hash,
'forwardlinkHash'=> $item->forwardlink->hash
)
);
}
$items[] = $result;
......
......@@ -57,14 +57,15 @@ class JisonParser_Wiki_Header
return $this->toHtmlListChildren($this->stack, $class);
}
private function toHtmlListChildren(&$stack, $class = '') {
private function toHtmlListChildren(&$stack, $class = '')
{
$result = '';
foreach($stack as &$header){
if(empty($header['content']) == false){
foreach ($stack as &$header) {
if (empty($header['content']) == false) {
$result .= '<li><a class="link" href="#' . $header['id'] . '">' . $header['content'] . '</a></li>';
if(empty($header['children']) == false) {
if (empty($header['children']) == false) {
$result .= $this->toHtmlListChildren($header['children']);
}
......@@ -100,4 +101,4 @@ class JisonParser_Wiki_Header
return $button;
}
}
\ No newline at end of file
}
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -9,7 +9,7 @@ require_once('lib/webmail/tikimaillib.php');
/**
* Factory for reports classes
*
*
* @package Tiki
* @subpackage Reports
*/
......@@ -18,24 +18,24 @@ class Reports_Factory
static public function build($className, DateTime $dt = null, TikiMail $tm = null, TikiLib $tikilib = null, $tikiPrefs = null)
{
$db = TikiDb::get();
if (is_null($dt)) {
$dt = new DateTime;
}
if (is_null($tm)) {
$tm = new TikiMail;
}
if (is_null($tikilib)) {
$tikilib = TikiLib::lib('tiki');
}
if (is_null($tikiPrefs)) {
global $prefs;
$tikiPrefs = $prefs;
}
switch($className) {
case 'Reports_Users':
return new Reports_Users($db, $dt);
......@@ -44,10 +44,10 @@ class Reports_Factory
case 'Reports_Manager':
global $userlib;
return new Reports_Manager(
Reports_Factory::build('Reports_Users', $dt, $tm, $tikilib),
Reports_Factory::build('Reports_Cache', $dt, $tm, $tikilib),
Reports_Factory::build('Reports_Send', $dt, $tm, $tikilib),
$userlib
Reports_Factory::build('Reports_Users', $dt, $tm, $tikilib),
Reports_Factory::build('Reports_Cache', $dt, $tm, $tikilib),
Reports_Factory::build('Reports_Send', $dt, $tm, $tikilib),
$userlib
);
case 'Reports_Send':
global $prefs;
......@@ -56,6 +56,6 @@ class Reports_Factory
return new Reports_Send_EmailBuilder($tikilib, new Reports_Send_EmailBuilder_Factory);
default:
throw new Exception("Unknown class $className");
}
}
}
}
}
......@@ -14,22 +14,22 @@ class Reports_Send_EmailBuilder_ForumPostThread extends Reports_Send_EmailBuilde
{
return tr('New replies in forum topics:');
}
public function getOutput(array $change)
{
global $dbTiki;
$base_url = $change['data']['base_url'];
$commentslib = TikiLib::lib('comments');
$parent_topic = $commentslib->get_comment($change['data']['topicId']);
$output = tr(
'%0 <a href=%1>replied</a> to the topic %2.',
"<u>{$change['data']['user']}</u>",
"\"{$base_url}tiki-view_forum_thread.php?forumId={$change['data']['forumId']}&comments_parentId={$change['data']['topicId']}#threadId{$change['data']['threadId']}\"",
"<a href=\"{$base_url}tiki-view_forum_thread.php?comments_parentId={$change['data']['topicId']}&forumId={$change['data']['forumId']}\">{$parent_topic['title']}</a>"
'%0 <a href=%1>replied</a> to the topic %2.',
"<u>{$change['data']['user']}</u>",
"\"{$base_url}tiki-view_forum_thread.php?forumId={$change['data']['forumId']}&comments_parentId={$change['data']['topicId']}#threadId{$change['data']['threadId']}\"",
"<a href=\"{$base_url}tiki-view_forum_thread.php?comments_parentId={$change['data']['topicId']}&forumId={$change['data']['forumId']}\">{$parent_topic['title']}</a>"
);
return $output;
}
}
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
/**
* Class for forum_post_topic events
* Class for forum_post_topic events
*/
class Reports_Send_EmailBuilder_ForumPostTopic extends Reports_Send_EmailBuilder_Abstract
{
......@@ -14,18 +14,18 @@ class Reports_Send_EmailBuilder_ForumPostTopic extends Reports_Send_EmailBuilder
{
return tr('New posts in forums:');
}
public function getOutput(array $change)
{
$base_url = $change['data']['base_url'];
$output = tr(
'%0 created the topic %1 at forum %2',
"<u>" . $change['data']['user'] . "</u>",
"<a href=\"{$base_url}tiki-view_forum_thread.php?comments_parentId={$change['data']['topicId']}&forumId={$change['data']['forumId']}\">{$change['data']['threadName']}</a>",
"<a href=\"{$base_url}tiki-view_forum.php?forumId={$change['data']['forumId']}\">{$change['data']['forumName']}</a>."
'%0 created the topic %1 at forum %2',
"<u>" . $change['data']['user'] . "</u>",
"<a href=\"{$base_url}tiki-view_forum_thread.php?comments_parentId={$change['data']['topicId']}&forumId={$change['data']['forumId']}\">{$change['data']['threadName']}</a>",
"<a href=\"{$base_url}tiki-view_forum.php?forumId={$change['data']['forumId']}\">{$change['data']['forumName']}</a>."
);
return $output;
}
}
......@@ -14,18 +14,18 @@ class Reports_Send_EmailBuilder_WikiFileAttached extends Reports_Send_EmailBuild
{
return tr('New attachments in wiki pages:');
}
public function getOutput(array $change)
{
$base_url = $change['data']['base_url'];
$output = tr(
'%0 uploaded the file %1 onto %2',
"<u>{$change['user']}</u>",
"<a href=\"{$base_url}tiki-download_wiki_attachment.php?attId={$change['data']['attId']}\">{$change['data']['filename']}</a>",
"<a href=\"{$base_url}tiki-index.php?page={$change['data']['pageName']}\">{$change['data']['pageName']}</a>."
'%0 uploaded the file %1 onto %2',
"<u>{$change['user']}</u>",
"<a href=\"{$base_url}tiki-download_wiki_attachment.php?attId={$change['data']['attId']}\">{$change['data']['filename']}</a>",
"<a href=\"{$base_url}tiki-index.php?page={$change['data']['pageName']}\">{$change['data']['pageName']}</a>."
);
return $output;
}
}
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -27,16 +27,16 @@ class Search_ContentSource_SheetSource implements Search_ContentSource_Interface
$values = $this->db->table('tiki_sheet_values');
$contributors = $values->fetchColumn(
$values->expr('DISTINCT `user`'),
array(
'sheetId' => $objectId,
)
$values->expr('DISTINCT `user`'),
array(
'sheetId' => $objectId,
)
);
$lastModif = $values->fetchOne(
$values->max('begin'),
array(
'sheetId' => $objectId,
)
$values->max('begin'),
array(
'sheetId' => $objectId,
)
);
$loader = new TikiSheetDatabaseHandler($objectId);
......@@ -49,7 +49,7 @@ class Search_ContentSource_SheetSource implements Search_ContentSource_Interface
$grid->export($writer);
$text = ob_get_contents();
ob_end_clean();
$data = array(
'title' => $typeFactory->sortable($info['title']),
'description' => $typeFactory->sortable($info['description']),
......
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -73,12 +73,12 @@ class Search_ContentSource_WikiSource implements Search_ContentSource_Interface
if (! $versionInfo || $versionInfo['version'] != $info['version']) {
// No approved version or approved version differs, latest content marked as such
$out[] = array_merge(
$data,
array(
'title' => $typeFactory->sortable(tr('%0 (latest)', $info['pageName'])),
'view_permission' => $typeFactory->identifier('tiki_p_wiki_view_latest'),
'url' => $typeFactory->identifier($wikilib->sefurl($info['pageName'], true) . 'latest'),
)
$data,
array(
'title' => $typeFactory->sortable(tr('%0 (latest)', $info['pageName'])),
'view_permission' => $typeFactory->identifier('tiki_p_wiki_view_latest'),
'url' => $typeFactory->identifier($wikilib->sefurl($info['pageName'], true) . 'latest'),
)
);
}
......@@ -86,11 +86,11 @@ class Search_ContentSource_WikiSource implements Search_ContentSource_Interface
// Approved version not latest, include approved version in index
// Also applies when versions are equal, data would be the same
$out[] = array_merge(
$data,
array(
'wiki_content' => $typeFactory->wikitext($versionInfo['data']),
'hash' => $typeFactory->identifier($versionInfo['version']),
)
$data,
array(
'wiki_content' => $typeFactory->wikitext($versionInfo['data']),
'hash' => $typeFactory->identifier($versionInfo['version']),
)
);
}
}
......
<?php
// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project
//
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
......@@ -38,21 +38,21 @@ class Services_AuthSource_Controller
}
return $this->sources()->insertOrUpdate(
array(
'scheme' => $info['scheme'],
'domain' => $info['host'],
'path' => $info['path'],
'method' => $method,
'arguments' => json_encode($arguments),
),
array('identifier' => $identifier,)
array(
'scheme' => $info['scheme'],
'domain' => $info['host'],
'path' => $info['path'],
'method' => $method,
'arguments' => json_encode($arguments),
),
array('identifier' => $identifier,)
);
}
function action_fetch($input)
{
$data = $this->sources()->fetchFullRow(
array('identifier' => $input->identifier->text(),)
array('identifier' => $input->identifier->text(),)
);
$data['arguments'] = json_decode($data['arguments'], true);
......@@ -64,7 +64,7 @@ class Services_AuthSource_Controller
function action_delete($input)
{
return $this->sources()->delete(