winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
November 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
910 discussions
Start a n
N
ew thread
Alexandre Julliard : comdlg32: Reimplement the 16-bit file dialog on top of the 32-bit one.
by Alexandre Julliard
13 Nov '09
13 Nov '09
Module: wine Branch: master Commit: 424472c20d8059057277ae13a0ffe5c51a818e52 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=424472c20d8059057277ae13a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 12 20:56:26 2009 +0100 comdlg32: Reimplement the 16-bit file dialog on top of the 32-bit one. Stub out the functionality that cannot be supported that way. --- dlls/comdlg32/filedlg16.c | 509 +++++++-------------------------------------- 1 files changed, 77 insertions(+), 432 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=424472c20d8059057277a…
1
0
0
0
Alexandre Julliard : comdlg32: Reimplement the 16-bit color dialog on top of the 32-bit one.
by Alexandre Julliard
13 Nov '09
13 Nov '09
Module: wine Branch: master Commit: 024a0683eb2e7a611bc9d7f9f40bd9e069cc1d78 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=024a0683eb2e7a611bc9d7f9f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 12 20:33:49 2009 +0100 comdlg32: Reimplement the 16-bit color dialog on top of the 32-bit one. Stub out the functionality that cannot be supported that way. --- dlls/comdlg32/cdlg.h | 22 --- dlls/comdlg32/cdlg16.h | 2 +- dlls/comdlg32/colordlg.c | 34 ++-- dlls/comdlg32/colordlg16.c | 444 +++----------------------------------------- 4 files changed, 40 insertions(+), 462 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=024a0683eb2e7a611bc9d…
1
0
0
0
Alexandre Julliard : comdlg32: Reimplement the 16-bit print dialog on top of the 32-bit one.
by Alexandre Julliard
13 Nov '09
13 Nov '09
Module: wine Branch: master Commit: 9e643967abf3687e49cc590eb654c9de4c344baf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9e643967abf3687e49cc590eb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 12 20:15:49 2009 +0100 comdlg32: Reimplement the 16-bit print dialog on top of the 32-bit one. Stub out the functionality that cannot be supported that way. --- dlls/comdlg32/printdlg.c | 78 ++++++- dlls/comdlg32/printdlg.h | 102 -------- dlls/comdlg32/printdlg16.c | 566 ++++++-------------------------------------- 3 files changed, 142 insertions(+), 604 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=9e643967abf3687e49cc5…
1
0
0
0
Alexandre Julliard : comdlg32: Reimplement the 16-bit font dialog on top of the 32-bit one.
by Alexandre Julliard
13 Nov '09
13 Nov '09
Module: wine Branch: master Commit: e5a09cffebb91e5defef611d1d90c92d32c349d1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e5a09cffebb91e5defef611d1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Nov 12 18:36:43 2009 +0100 comdlg32: Reimplement the 16-bit font dialog on top of the 32-bit one. Stub out the functionality that cannot be supported that way. --- dlls/comdlg32/cdlg.h | 25 --- dlls/comdlg32/fontdlg.c | 47 +++--- dlls/comdlg32/fontdlg16.c | 371 ++++++++------------------------------------- 3 files changed, 91 insertions(+), 352 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=e5a09cffebb91e5defef6…
1
0
0
0
Alexander Nicolaysen Sørnes : user: Fix fatal error in get_notify_email_address_list
by Alexander Nicolaysen Sørnes
13 Nov '09
13 Nov '09
Module: appdb Branch: master Commit: 0fe0530337584592d6f84a0bb1343a52a4a34550 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=0fe0530337584592d6f84a0b…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Fri Nov 13 11:57:45 2009 +0100 user: Fix fatal error in get_notify_email_address_list --- include/user.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/user.php b/include/user.php index 212b331..5edc355 100644 --- a/include/user.php +++ b/include/user.php @@ -581,7 +581,8 @@ class User { // if we didn't find this entry in the $aUserId // array then we should add it if the admin has // enabled global emails - if($i === false && ($this->getPref('disable_global_emails','no') == 'no')) + $oAdmin = new user($oRow->userId); + if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no')) $aUserId[] = $oRow->userid; } }
1
0
0
0
Alexander Nicolaysen Sørnes : Allow admins to disable global email notifications
by Alexander Nicolaysen Sørnes
12 Nov '09
12 Nov '09
Module: appdb Branch: master Commit: dc06f730ca50e8ed575283c3d855e5cae9c3a6e7 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=dc06f730ca50e8ed575283c3…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)> Date: Thu Nov 12 21:05:19 2009 +0100 Allow admins to disable global email notifications --- include/user.php | 5 +++-- preferences.php | 4 ++++ tables/prefs_list.sql | 24 +++++++++++++----------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/include/user.php b/include/user.php index 73d47eb..212b331 100644 --- a/include/user.php +++ b/include/user.php @@ -579,8 +579,9 @@ class User { $i = array_search($oRow->userid, $aUserId); // if we didn't find this entry in the $aUserId - // array then we should add it - if($i === false) + // array then we should add it if the admin has + // enabled global emails + if($i === false && ($this->getPref('disable_global_emails','no') == 'no')) $aUserId[] = $oRow->userid; } } diff --git a/preferences.php b/preferences.php index 962939a..103ba72 100644 --- a/preferences.php +++ b/preferences.php @@ -51,6 +51,10 @@ function build_prefs_list($oUser) continue; } + /* Check if the permission only applies to a specific group */ + if($r->show_for_group && !$_SESSION['current']->hasPriv($r->show_for_group)) + continue; + $input = html_select("pref_$r->name", explode('|', $r->value_list), $oUser->getpref($r->name, $r->def_value)); diff --git a/tables/prefs_list.sql b/tables/prefs_list.sql index 1952a03..df9a946 100644 --- a/tables/prefs_list.sql +++ b/tables/prefs_list.sql @@ -8,18 +8,20 @@ CREATE TABLE prefs_list ( def_value text, value_list text, description text, + show_for_group text, primary key(id) ); -INSERT INTO prefs_list VALUES (0, 'debug', 'no', 'yes|no', 'Enable debugging information'); -INSERT INTO prefs_list VALUES (0, 'sidebar', 'left', 'left|right', 'Sidebar location'); -INSERT INTO prefs_list VALUES (0, 'window:query', 'no', 'yes|no', 'Display query results in a new window'); -INSERT INTO prefs_list VALUES (0, 'window:help', 'no', 'yes|no', 'Display help in a new window'); -INSERT INTO prefs_list VALUES (0, 'window:offsite', 'no', 'yes|no', 'Display offsite URLs in a new window'); -INSERT INTO prefs_list VALUES (0, 'confirm_comment_deletion', 'yes', 'yes|no', 'Ask why you are deleting a comment before deleting it'); -INSERT INTO prefs_list VALUES (0, 'query:mode', 'view', 'view|edit', 'Default API details mode'); -INSERT INTO prefs_list VALUES (0, 'query:hide_header', 'no', 'yes|no', 'Hide apidb header in query results'); -INSERT INTO prefs_list VALUES (0, 'query:hide_sidebar', 'no', 'yes|no', 'Hide apidb sidebar in query results'); -INSERT INTO prefs_list VALUES (0, 'send_email', 'yes', 'yes|no', 'Send email notifications'); -INSERT INTO prefs_list VALUES (0, 'htmleditor', 'for supported browsers', 'always|for supported browsers|never', 'Display a graphical HTML editor in certain text fields'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('debug', 'no', 'yes|no', 'Enable debugging information'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('sidebar', 'left', 'left|right', 'Sidebar location'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('window:query', 'no', 'yes|no', 'Display query results in a new window'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('window:help', 'no', 'yes|no', 'Display help in a new window'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('window:offsite', 'no', 'yes|no', 'Display offsite URLs in a new window'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('confirm_comment_deletion', 'yes', 'yes|no', 'Ask why you are deleting a comment before deleting it'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('query:mode', 'view', 'view|edit', 'Default API details mode'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('query:hide_header', 'no', 'yes|no', 'Hide apidb header in query results'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('query:hide_sidebar', 'no', 'yes|no', 'Hide apidb sidebar in query results'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('send_email', 'yes', 'yes|no', 'Send email notifications'); +INSERT INTO prefs_list (name,def_value,value_list,description) VALUES ('htmleditor', 'for supported browsers', 'always|for supported browsers|never', 'Display a graphical HTML editor in certain text fields'); +INSERT INTO prefs_list (name,def_value,value_list,description,show_for_group) VALUES ('disable_global_emails', 'no', 'yes|no', 'Disable global e-mail notifications (only send for maintained apps)', 'admin');
1
0
0
0
Alexander Nicolaysen Sørnes : note: Don' t allow version maintainers to create app-wide notes
by Alexander Nicolaysen Sørnes
12 Nov '09
12 Nov '09
Module: appdb Branch: master Commit: 3c860528dda88b6656e11e9c2451086fd2cf1835 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=3c860528dda88b6656e11e9c…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)> Date: Thu Nov 12 19:24:17 2009 +0100 note: Don't allow version maintainers to create app-wide notes --- include/note.php | 37 ++++++++++++++++++++++--------------- 1 files changed, 22 insertions(+), 15 deletions(-) diff --git a/include/note.php b/include/note.php index 92891b5..4cc9805 100644 --- a/include/note.php +++ b/include/note.php @@ -568,25 +568,32 @@ class Note { $aIds = $this->getDisplayModeIds(); $aOptions = $this->getDisplayModeNames(); - echo '<tr><td class="color1">Display mode</td>'."\n"; - echo '<td class="color0">'.html_radiobuttons($aIds, $aOptions, 'iVersionId', $this->iVersionId); + /* Version maintainers are not allowed to show a note app-wide */ + if($oApp->canEdit()) + { + echo '<tr><td class="color1">Display mode</td>'."\n"; + echo '<td class="color0">'.html_radiobuttons($aIds, $aOptions, 'iVersionId', $this->iVersionId); - /* Allow the note to be shown for certain versions only */ - $aIds = array(); - $aOptions = array(); - $aSelected = array(); + /* Allow the note to be shown for certain versions only */ + $aIds = array(); + $aOptions = array(); + $aSelected = array(); - foreach($oApp->getVersions(true) as $oAppVersion) // Only accepted versions - { - - $aIds[] = $oAppVersion->objectGetId(); - $aOptions[] = $oAppVersion->objectMakeLink(); + foreach($oApp->getVersions(true) as $oAppVersion) // Only accepted versions + { + + $aIds[] = $oAppVersion->objectGetId(); + $aOptions[] = $oAppVersion->objectMakeLink(); - $aSelected[] = $this->isLinkedWith($oAppVersion->objectGetId(), false); - } - echo html_checkboxes('iVersionId', $aIds, $aOptions, $aSelected); + $aSelected[] = $this->isLinkedWith($oAppVersion->objectGetId(), false); + } + echo html_checkboxes('iVersionId', $aIds, $aOptions, $aSelected); - echo '</td></tr>'; + echo '</td></tr>'; + } else + { + echo "<input type=\"hidden\" name=\"iVersionId\" value=\"{$oVersion->iVersionId}\" />"; + } } else if(!$this->iAppId) { echo '<input type="hidden" name="iVersionId" value="'.$this->iVersionId.'">';
1
0
0
0
Alexander Nicolaysen Sørnes : application: Fix viewing rejected applications for non-admins
by Alexander Nicolaysen Sørnes
12 Nov '09
12 Nov '09
Module: appdb Branch: master Commit: f48d0fd290ae51f34ecb16f73636b28f9ac069b8 URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=f48d0fd290ae51f34ecb16f7…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)> Date: Thu Nov 12 18:45:57 2009 +0100 application: Fix viewing rejected applications for non-admins --- include/application.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/application.php b/include/application.php index 3251261..6f8fa26 100644 --- a/include/application.php +++ b/include/application.php @@ -1286,7 +1286,7 @@ class Application { if($sState != 'accepted' && !application::canEdit()) { /* Without edit rights users can only resubmit their rejected entries */ - if(!$bRejected) + if($sState != 'rejected') return FALSE; $sQuery = "SELECT COUNT(DISTINCT(appFamily.appId)) as count FROM appFamily$sExtraTables WHERE
1
0
0
0
Alexander Nicolaysen Sørnes : maintainer : Avoid duplicate maintainers when merging apps/versions
by Alexander Nicolaysen Sørnes
12 Nov '09
12 Nov '09
Module: appdb Branch: master Commit: 28b14f7beac05a1a632560c73160e22538313d3a URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=28b14f7beac05a1a632560c7…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)> Date: Thu Nov 12 18:15:38 2009 +0100 maintainer: Avoid duplicate maintainers when merging apps/versions --- include/maintainer.php | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/include/maintainer.php b/include/maintainer.php index 3741264..5ca2751 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -1002,10 +1002,27 @@ class maintainer return array(); } + public function isDuplicate() + { + $hResult = query_parameters("SELECT COUNT(maintainerId) as count FROM appMaintainers + WHERE versionId = '?' and appId = '?' AND userId = '?' AND maintainerId != '?'", + $this->iVersionId, $this->iAppId, $this->iUserId, $this->iMaintainerId); + + if(!$hResult) + return false; + + $oRow = mysql_fetch_object($hResult); + + return $oRow->count > 0; + } + public function update() { $oMaintainer = new maintainer($this->iMaintainerId); + if($this->isDuplicate()) + return $this->delete(); + if($this->iVersionId && $oMaintainer->iVersionId != $this->iVersionId) { $hResult = query_parameters("UPDATE appMaintainers SET versionId = '?'
1
0
0
0
Alexander Nicolaysen Sørnes : Comments Management: Allow showing only comments for unmaintained versions
by Alexander Nicolaysen Sørnes
12 Nov '09
12 Nov '09
Module: appdb Branch: master Commit: ee0f672aa360dc0fc2f8e4dbdbae72b72dfc426e URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=ee0f672aa360dc0fc2f8e4db…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)> Date: Thu Nov 12 17:58:37 2009 +0100 Comments Management: Allow showing only comments for unmaintained versions --- include/comment.php | 38 ++++++++++++++++++++++++++++++++++---- 1 files changed, 34 insertions(+), 4 deletions(-) diff --git a/include/comment.php b/include/comment.php index a4732f7..8625236 100644 --- a/include/comment.php +++ b/include/comment.php @@ -312,8 +312,27 @@ class Comment { return false; } - public static function objectGetEntries($sState, $iNumRows = 0, $iStart = 0, $sOrderBy = 'commentId') + public function objectGetFilterInfo() { + $oFilter = new FilterInterface(); + $oFilter->AddFilterInfo('onlyWithoutMaintainers', 'Only show comments for versions without maintainers', array(FILTER_OPTION_BOOL), FILTER_VALUES_OPTION_BOOL, array('false','true')); + return $oFilter; + } + + + public static function objectGetEntries($sState, $iNumRows = 0, $iStart = 0, $sOrderBy = 'commentId', $bAscending = true, $oFilters = null) + { + $sExtraTables = ''; + $aOptions = $oFilters ? $oFilters->getOptions() : array('onlyWithoutMaintainers' => 'false'); + $sWhereFilter = ''; + + if($aOptions['onlyWithoutMaintainers'] == 'true') + { + $sExtraTables = ',appVersion'; + + $sWhereFilter .= " WHERE appVersion.hasMaintainer = 'false' AND appVersion.versionId = appComments.versionId"; + } + $sLimit = ''; if($iNumRows) @@ -326,7 +345,7 @@ class Comment { if($sOrderBy) $sOrderBy = " ORDER BY ".mysql_real_escape_string($sOrderBy); - $hResult = query_parameters("SELECT * FROM appComments$sOrderBy$sLimit"); + $hResult = query_parameters("SELECT * FROM appComments$sExtraTables$sWhereFilter$sOrderBy$sLimit"); return $hResult; } @@ -336,9 +355,20 @@ class Comment { return 'commentId'; } - public static function objectGetEntriesCount($sState) + public static function objectGetEntriesCount($sState, $oFilters = null) { - $hResult = query_parameters("SELECT COUNT(commentId) as count FROM appComments"); + $sExtraTables = ''; + $aOptions = $oFilters ? $oFilters->getOptions() : array('onlyWithoutMaintainers' => 'false'); + $sWhereFilter = ''; + + if($aOptions['onlyWithoutMaintainers'] == 'true') + { + $sExtraTables = ',appVersion'; + + $sWhereFilter .= " WHERE appVersion.hasMaintainer = 'false' AND appVersion.versionId = appComments.versionId"; + } + + $hResult = query_parameters("SELECT COUNT(commentId) as count FROM appComments$sExtraTables$sWhereFilter"); if(!$hResult) return null;
1
0
0
0
← Newer
1
...
53
54
55
56
57
58
59
...
91
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Results per page:
10
25
50
100
200