Commit Graph

124 Commits

Author SHA1 Message Date
Michal Čihař
f96886a445 Fix check for null
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-08-01 08:50:26 +02:00
Deven Bansod
9b76fccb27 Remove unnecessary call to ksort on empty list
Fix #12691

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-11-13 11:37:50 +05:30
Michal Čihař
dd732134f2 Do not try to create non existing classes
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-13 09:47:09 +02:00
Michal Čihař
7de636d826 Fix PHP error if user did unpack new version over old one
By doing stricter check on filename, we avoid old classes which break
autoloader.

Fixes #12159

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-06 14:05:49 +02:00
Michal Čihař
55b317c699 Remove /*overload*/ prefix from mb_* calls
I believe this was temporary flagging to see which code is migrated and
can be safely removed now.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-04 16:35:28 +01:00
Michal Čihař
cc07b737dc Remove unused PMA_String class
The class is no longer used:

- the ctype part is not needed by new SQL parser
- the utf-8 manipulation was replaced by direct usage of mbstring

Signed-off-by: Michal Čihař <michal@cihar.com>
2015-12-21 12:09:06 +01:00
Hugues Peccatte
f04a678bad Update PHPDoc.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-12-11 23:16:13 +01:00
drainx
015c051b65 Fix missing include_once
Originally removed by: 0680c243d1

Signed-off-by: Daniel Rix <Drainx1@live.com>
2015-11-05 15:26:44 -06:00
Hugues Peccatte
6a2f9187ce Revert comparison.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-13 15:47:47 +02:00
Hugues Peccatte
27e362b6e4 Fix case issue.
Use FQN to load class.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 23:48:52 +02:00
Hugues Peccatte
330c92ddf7 Set namespace on properties classes.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 22:16:23 +02:00
Hugues Peccatte
d8791801a6 Update plugins visit.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 20:02:56 +02:00
Hugues Peccatte
0680c243d1 Update plugins load.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 00:50:35 +02:00
Hugues Peccatte
4d9fe98ec6 Add missing elements of ExportOds class.
Remove includes of plugins.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-06 18:59:29 +02:00
Hugues Peccatte
f0ba28fc1d Set namespace on Advisor, Config, Console and Util classes.
Set namespace on DbQbe.
Set namespace to 'DbSearch'.
Split Advisor.class.php file.
Change Advisor namespace.
Rename DbQbe class and file.
Set namespace on DisplayResults.
Set namespace on Error.
Use namespace for ErrorHandler.
Add class autoloader.
Change ErrorHandler filename.
Remove some require.
Update Config namespace path.
Update PMA_Util to PMA\libraries\Util.
Rename Font and File classes files.
Use namespace for Footer.
Set namespace in all libraries classes.
Namespace OutputBuffering.
Export SubPartition.
Rename Partition file.
Namespace PDF.
Namespace RecentFavoriteTable.
Replace PMA_Response by Response and PMA_Message by Message.
Update uses and calls.
Fix unit tests.
Fix SqlParser autoload.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:22:52 +02:00
Hugues Peccatte
bd707b871d Update PHPDoc.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-24 23:34:50 +02:00
Madhura Jayaratne
5857fe163d Fix spacing after opening brace
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-04-28 11:05:08 +05:30
Madhura Jayaratne
867aff9c18 Simplify the logic
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-11-14 12:25:50 +05:30
Hugues Peccatte
270b9e7a5d Add and update PHPDoc.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-11-02 14:44:46 +01:00
Hugues Peccatte
80ced5fe8f Fix PHPCS issues.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-30 18:37:49 +01:00
Hugues Peccatte
70a21ec25c Merge from master.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-10-08 21:49:37 +02:00
Madhura Jayaratne
2c8a3d21da Fix function name
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-10-07 14:24:55 +05:30
Hugues Peccatte
3de88162ff Replace PMA_String uses by mb_* calls.
Remove part of unused  variables.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-28 20:53:01 +02:00
Hugues Peccatte
f9dd601397 Coding style modifications.
Refactoring.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-14 16:16:47 +02:00
Hugues Peccatte
5985894160 Fix typos.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-07 00:31:45 +02:00
Hugues Peccatte
9b77d746ab Mass modifications to use PMA_String.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-09-06 10:44:03 +02:00
Hugues Peccatte
b55719206b Remove SQL format for multi-table queries.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-06-09 15:27:40 +02:00
Marc Delisle
a1f98d9c2e Fix merge conflicts
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-03-25 12:29:08 -04:00
Marc Delisle
d4c8bef2e6 bug #4326 Cannot find the import plugins which start with uppercase 'I'
Signed-off-by: Marc Delisle <marc@infomarc.info>
2014-03-25 12:25:48 -04:00
Madhura Jayaratne
84e9ce4946 Spaces around . operator
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2014-01-08 17:26:27 +05:30
Hugues Peccatte
efd206f1dc Reduce nested levels.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2013-12-21 00:06:04 +01:00
Hugues Peccatte
008b1fa8d3 Rewrite to decrease number of nested levels.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2013-12-07 22:16:16 +01:00
Hugues Peccatte
464ec23ad8 Huge PHPDoc update. 2013-11-10 23:04:58 +01:00
J.M
ac05fec3fa Use input type=number 2013-08-18 15:39:51 +02:00
Michal Čihař
1a9edda119 Various coding style fixes 2013-08-07 11:06:41 +02:00
Michal Čihař
d1bb142e87 Remove unused param from PMA_Util::showMySQLDocu 2013-08-07 08:48:50 +02:00
Michal Čihař
c0ce163e05 Drop some unused local variables
Found by PMD on our CI server
2013-07-10 14:53:05 +02:00
Michal Čihař
61a601fc73 Implement linking to new documentation 2012-11-12 09:48:05 +01:00
Dieter Adriaenssens
fe6124a555 improve DocBlocks 2012-11-08 16:48:16 +01:00
Michal Čihař
b09538ed0c Check if properties do exist before using them 2012-10-15 12:00:12 +02:00
Michal Čihař
84ff489baf Use already retrieved return value 2012-10-15 12:00:12 +02:00
Chanaka Indrajith
6971295e96 Renamed PMA_CommonFunctions::getInstance()-> with PMA_Util:: 2012-09-16 14:41:47 +05:30
Dieter Adriaenssens
1174ca3b4f fix coding style 2012-09-02 20:00:40 +02:00
Madhura Jayaratne
2e7af90c35 Fix multiline function calls 2012-08-23 22:42:12 +05:30
Madhura Jayaratne
cfccc97143 Fix indentation of the switch block 2012-08-23 22:38:21 +05:30
Madhura Jayaratne
64fe04c4bd Coding style fixes 2012-08-23 22:36:50 +05:30
Alex Marin
4b010454b4 oop: fix undefined variable 2012-08-14 12:36:53 +03:00
Alex Marin
c26356e9ca oop: fix properties object in plugin_interface 2012-08-13 09:36:29 +03:00
Alex Marin
ca21e5b5f4 oop: properties - fix getText() on a non-object 2012-08-07 16:23:46 +03:00
Alex Marin
72da3b8880 oop: properties - fix invalid argument for foreach 2012-08-07 14:58:29 +03:00